Support async execution in NNAPI (#6395)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 8 Aug 2019 09:52:39 +0000 (18:52 +0900)
committer이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Thu, 8 Aug 2019 09:52:39 +0000 (18:52 +0900)
commita51ebfaad6d18d55089a5d8102be0518df1a8db5
treecfd9e718e9f0c19ee58cb806c9f1d642787fd3eb
parentf3103e9fd1eaf1aa23f1933461f0e36562404505
Support async execution in NNAPI (#6395)

Implement Event class to support async execution
Use internal async execution function for startCompute and wait

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/frontend/nnapi/event.cc
runtimes/neurun/frontend/nnapi/execution.cc
runtimes/neurun/frontend/nnapi/wrapper/ANeuralNetworksEvent.cc [new file with mode: 0644]
runtimes/neurun/frontend/nnapi/wrapper/ANeuralNetworksEvent.h
runtimes/neurun/frontend/nnapi/wrapper/ANeuralNetworksExecution.cc
runtimes/neurun/frontend/nnapi/wrapper/ANeuralNetworksExecution.h