[libnpuhost] Add the API to set timeout for next inferences
authorDongju Chae <dongju.chae@samsung.com>
Mon, 10 Feb 2020 04:18:31 +0000 (13:18 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Wed, 12 Feb 2020 04:44:04 +0000 (13:44 +0900)
commit1bbb7ac9cd476dff08c5bdebe069d6c0e044b16d
tree484a50bfa96b95c5a41bf192390f8cf52a181162
parent5020f11e87fa45528ffde5b3c5b840540ab31de4
[libnpuhost] Add the API to set timeout for next inferences

This commit adds the API to set timeout for next inferences.
It will be called before runNPU_* functions.
Also, if the timeout is zero, the next inferences are regarded
as time-critical tasks (i.e., preemption mode).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
include/host/libnpuhost.h
src/core/ip/plugin-comm-ip.c