Simultaneous use of OpenCL(GPU) and TensorFlow Lite(NPU)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Simultaneous use of OpenCL(GPU) and TensorFlow Lite(NPU)

899 次查看
tetsuro-okuyama
Contributor V

Hi,

I want to use OpenCL and Tensorflow lite in the same process.

But my program freezes after calling clEnqueueMapBuffer on i.MX 8Mplus.
Is it possible to use OpenCL and tflite (NPU) at the same time?

The outline of the program is as follows:

1. Initialize OpenCL and loading Tensorflow lite model(using NPU).
2. Call clEnqueueNDRangeKernel and clEnqueueMapBuffer for executing OpenCL
 ->Does not return from clEnqueueMapBuffer

Are there any restrictions on simultaneous use?
Also, if I need any settings, please let me know.


Best regards,

0 项奖励
回复
1 回复

893 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Tetsuro,

 

There is no restriction to use OpenCL and TensorFlow lite, but I do not see that clEnqueueNDRangeKernel has the data for NPU, so please send us your test code to validate.

 

Regards

0 项奖励
回复