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~
已解决! 转到解答。
you can find softISP source code from:
"https://github.com/NXPmicro/gtec-demo-framework/tree/master/DemoApps/OpenCL/SoftISP/source"
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
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 ~