How to use ovxlib or NPU

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

How to use ovxlib or NPU

跳至解决方案
6,908 次查看
weilly_li
Contributor IV

Hi,

     Recently, I find a code as "VSI_NN_LOG_LEVEL" from PyeIQ using NPU . So I tracked to ovxlib and openvx . but I don't know how to use it ,please help me get some document and information!! 

I appreciate your help very much.

 

Weilly

0 项奖励
1 解答
6,679 次查看
joanxie
NXP TechSupport
NXP TechSupport

don't such document besides the machine learning user guide I sent to you


OVXLIB and OpenVX driver integrated with NXP
GPU driver package
− Provides low-level calls to NPU hardware
− Implemented as OpenCL kernels for GPUs of i.MX
8M, 8M Nano and 8QuadXPlus
− i.MX 8QuadMax OpenVX hardware extension
accelerates OpenVX instructions and has a significant
performance advantage over running on shader core

for imx8mp:

openvx hardware extension is available in the i.MX8MP NPU, which means that OpenVX hardware acceleration is performed on the NPU, not on the GPU

so for gpu or npu demo module, you can find the test demo in the bsp , for imx8mp demo, which is still internal use, I couldn't share with outside customer

 

在原帖中查看解决方案

0 项奖励
11 回复数
6,866 次查看
weilly_li
Contributor IV

Hi, Joanxie

     It is running PyeIQ DEMO on  i.MX8M Plus (NPU)  or   i.MX8QM (GPU) .

     Thank you

0 项奖励
6,858 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
6,848 次查看
weilly_li
Contributor IV

Hi, Joanxie

    Thank You tell me about ISP & OpenVX information,  But it's not My need.

    I want to know "HOW to use ovxlib on NPU/GPU" , or any related document .

    Example 1 : enable inference engine
                       VSI_NN_LOG_LEVEL=0 {bin} -m {model} -t 1 -i {Image} -l {label} -a 1 -v 0 -c 100

     Example 2 : Using Ovxlib  library

                         vsi_nn_VerifyGraph,  vsi_nn_AddNode etc....

 

   Or... How to get VX/vx_ext_program.h 

   like this link :OpenVX Vision Image Extension API Introduction - Basic API

 

   Thank your help so much

0 项奖励
6,830 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the enclosed file, hope helpful for you

 

0 项奖励
6,813 次查看
weilly_li
Contributor IV

Hi, joanxie

     thank your help , this document taught me some operations with NPU/GPU  (at Appendix A &B),

     but it's not about "ovxlib" or "VSI_NN_LOG_LEVEL" using way...

     I appreciate your help very much.

0 项奖励
5,647 次查看
unscripted1
Contributor I

Hi Weily

did you get any infos about ovxlib??

0 项奖励
6,881 次查看
joanxie
NXP TechSupport
NXP TechSupport

what board are you talking about?

0 项奖励
6,717 次查看
weilly_li
Contributor IV

My board is i.MX8MPlus and i.MX8QM. 

The problem's not find the tutorials documen yet, thank your help !!

 

0 项奖励
6,680 次查看
joanxie
NXP TechSupport
NXP TechSupport

don't such document besides the machine learning user guide I sent to you


OVXLIB and OpenVX driver integrated with NXP
GPU driver package
− Provides low-level calls to NPU hardware
− Implemented as OpenCL kernels for GPUs of i.MX
8M, 8M Nano and 8QuadXPlus
− i.MX 8QuadMax OpenVX hardware extension
accelerates OpenVX instructions and has a significant
performance advantage over running on shader core

for imx8mp:

openvx hardware extension is available in the i.MX8MP NPU, which means that OpenVX hardware acceleration is performed on the NPU, not on the GPU

so for gpu or npu demo module, you can find the test demo in the bsp , for imx8mp demo, which is still internal use, I couldn't share with outside customer

 

0 项奖励
5,651 次查看
unscripted1
Contributor I

Hi joanxie

 

I also need the OVXLIB documentation for IMX8

0 项奖励
6,345 次查看
arno_0
Contributor III

I would like to use NPU of imx8mp. At the moment I am on a 5.10 mainline kernel, but it seems that I need parts of NXP kernel for accessing the NPU. From the other post it seems like that gpu-viv is needed (and its part of devicetree). Is this right - even if computation is not done on GPU but NPU? At least I don't find a dedicated NPU kernel driver. Can you advise?

0 项奖励