How to use OpenCL on iMX8MQEVK

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

How to use OpenCL on iMX8MQEVK

Jump to solution
2,411 Views
shengkunning
Contributor I

Dear NXP,

I had built image and SDK for iMX8MQEVK successfully. But I cannot find out anything
about OpenCL, such as libOpenCL.so or cl.h

Could you kindly point out how to use OpenCL on iMX8MQEVK ?

The method that I built Yocto L4.14.98 for iMX8MQEVK is listed as following:

$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
$ repo sync
$ EULA=1 DISTRO=fsl-imx-xwayland MACHINE=imx8mqevk source fsl-setup-release.sh -b build
$ bitbake fsl-image-validation-imx
$ bitbake meta-toolchain

Thanks~

 

Tags (1)
0 Kudos
1 Solution
2,324 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
5 Replies
2,285 Views
AndreSilva
Contributor II

Hi, I believe this minimal image you built doesn't include some drivers, I suggest you to build the full image, you can follow this tutorial:

 

https://imxcv.blogspot.com/2020/05/creating-opencl-demo-application-using.html

 

just don't forget to change the target's name.

 

Cheers,

Andre

0 Kudos
2,390 Views
joanxie
NXP TechSupport
NXP TechSupport

for imx8mq, you can use softISP to test OpenCL, the path is:

/opt/imx-gpu-sdk/openCL

0 Kudos
2,387 Views
shengkunning
Contributor I

Dear joanxie,

Thanks for your help.
I find the test program "OpenCL/SoftISP" following your suggestion,
and it can run normally on iMX8MQEVK.

But now I'm not clear about how does this program use OpenCL.
Because as far as I know, if we write our own application,
the program should include "cl.h" or "OpenCL.h" and link "libOpenCL.so".

However I do not find these header files and lib file.

If my understanding is wrong, please correct me.

And I do not find the source code of "OpenCL/SoftISP", so I'm not sure
about how to use GPU in our own application via OpenCL.

Could you please provide more suggestion for our own application to use
OpenCL?

Thanks ~

0 Kudos
2,325 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
2,317 Views
shengkunning
Contributor I

Thank you very much ~

0 Kudos