I'am having trouble following Diego Dorto tutorials.
https://diegodorta.com.br/yocto/Setting-Up-Yocto.html
https://diegodorta.com.br/gpu/OpenCL-Overview.html
In second when I try to do
$ $CC hello.cpp -o hello -Wl,--library-path=<PATH_TO_LIB>,\ -rpath-link=<PATH_TO_LIB> -lm -lOpenCL
I get the following output
hello.cpp:1:19: fatal error: CL/cl.h: No such file or directory
So I added
$ $CC hello.cpp -o hello -Wl,--library-path=<PATH_TO_LIB>,\ -rpath-link=<PATH_TO_LIB> -I/usr/include -lm -lOpenCL
and I get the following output
/opt/fsl-imx-xwayland/4.9.51-mx8-ga/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/6.2.0/real-ld: cannot find -lOpenCL
I think that I didn't built an image and respective sdk with OpenCL
My local.conf:
MACHINE ??= 'imx8mqevk'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
IMAGE_INSTALL_append = "imx-gpu-viv"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
EDIT: I'am using core-image-base
Hi Luis,
I can not enter the link you showed up, but in general try the L4.14 it includes support for OpenCL.
Regards