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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,053 Views
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 Kudos
Reply
1 Reply

1,047 Views
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 Kudos
Reply