[API/Priority] Add the API to set timeout/priority per model
authorDongju Chae <dongju.chae@samsung.com>
Tue, 25 Feb 2020 11:07:48 +0000 (20:07 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Thu, 5 Mar 2020 06:48:15 +0000 (15:48 +0900)
commitcb00bc9f86baaa99c09f7b508a530f32f684da2c
tree887e651ea6db90bb04ffae6e50cbf608481a1158
parent5d6681328fef5e6b664d592b27c1417b1e2b2650
[API/Priority] Add the API to set timeout/priority per model

This commit adds the API to set timeout/priority per model.
Note that per-request handling requires more software burdens, and API
modification, which are not desirable.
Also, we now support three types of priorities for inference requests,
HIGH, MID, and LOW.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
13 files changed:
include/common/typedef.h
include/host/libnpuhost.h
src/core/ip/plugin-comm-ip.c
src/core/ne-comm.h
src/core/ne-handler.c
src/core/ne-host-input-service.c
src/core/ne-inf.c
src/core/ne-inf.h
src/core/ne-inputservice.h
src/core/ne-scheduler.c
src/core/ne-scheduler.h
tests/unittests/ne_core_handler_test.cpp
tests/unittests/ne_core_inf_test.cpp