<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OpenCL in IMX8MQEVK in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-in-IMX8MQEVK/m-p/897027#M135485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'am having trouble following Diego Dorto tutorials.&lt;/P&gt;&lt;P&gt;&lt;A href="https://diegodorta.com.br/yocto/Setting-Up-Yocto.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://diegodorta.com.br/yocto/Setting-Up-Yocto.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://diegodorta.com.br/gpu/OpenCL-Overview.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://diegodorta.com.br/gpu/OpenCL-Overview.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second when I try to do&lt;/P&gt;&lt;PRE class="" style="color: #515151; background-color: #f5f5f5; font-size: 0.8rem; padding: 1rem;"&gt;&lt;CODE style="color: inherit; background-color: transparent; font-size: 12.8px;"&gt;&lt;SPAN class="" style="color: #003333;"&gt;$ $CC&lt;/SPAN&gt; hello.cpp &lt;SPAN class="" style="color: #2f6f9f;"&gt;-o&lt;/SPAN&gt; hello &lt;SPAN class="" style="color: #2f6f9f;"&gt;-Wl&lt;/SPAN&gt;,--library-path&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt;,&lt;SPAN class="" style="color: #cc3300;"&gt;\&lt;/SPAN&gt;  &lt;SPAN class="" style="color: #2f6f9f;"&gt;-rpath-link&lt;/SPAN&gt;&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt; &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lm&lt;/SPAN&gt; &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lOpenCL&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following output&lt;/P&gt;&lt;P&gt;hello.cpp:1:19: fatal error: CL/cl.h: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #515151; background-color: #f5f5f5; font-size: 0.8rem; padding: 1rem;"&gt;&lt;CODE style="color: inherit; background-color: transparent; font-size: 12.8px;"&gt;&lt;SPAN class="" style="color: #003333;"&gt;$ $CC&lt;/SPAN&gt; hello.cpp &lt;SPAN class="" style="color: #2f6f9f;"&gt;-o&lt;/SPAN&gt; hello &lt;SPAN class="" style="color: #2f6f9f;"&gt;-Wl&lt;/SPAN&gt;,--library-path&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt;,&lt;SPAN class="" style="color: #cc3300;"&gt;\&lt;/SPAN&gt;  &lt;SPAN class="" style="color: #2f6f9f;"&gt;-rpath-link&lt;/SPAN&gt;&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt; -I/usr/include &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lm&lt;/SPAN&gt; &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lOpenCL&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and I get the following output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I didn't built an image and respective sdk with OpenCL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My local.conf:&lt;/P&gt;&lt;P&gt;MACHINE ??= 'imx8mqevk'&lt;BR /&gt;DISTRO ?= 'fsl-imx-xwayland'&lt;BR /&gt;PACKAGE_CLASSES ?= "package_rpm"&lt;BR /&gt;EXTRA_IMAGE_FEATURES ?= "debug-tweaks"&lt;BR /&gt;USER_CLASSES ?= "buildstats image-mklibs image-prelink"&lt;BR /&gt;PATCHRESOLVE = "noop"&lt;BR /&gt;BB_DISKMON_DIRS ??= "\&lt;BR /&gt; STOPTASKS,${TMPDIR},1G,100K \&lt;BR /&gt; STOPTASKS,${DL_DIR},1G,100K \&lt;BR /&gt; STOPTASKS,${SSTATE_DIR},1G,100K \&lt;BR /&gt; STOPTASKS,/tmp,100M,100K \&lt;BR /&gt; ABORT,${TMPDIR},100M,1K \&lt;BR /&gt; ABORT,${DL_DIR},100M,1K \&lt;BR /&gt; ABORT,${SSTATE_DIR},100M,1K \&lt;BR /&gt; ABORT,/tmp,10M,1K"&lt;BR /&gt;PACKAGECONFIG_append_pn-qemu-native = " sdl"&lt;BR /&gt;PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"&lt;BR /&gt;CONF_VERSION = "1"&lt;BR /&gt;IMAGE_INSTALL_append = "imx-gpu-viv"&lt;/P&gt;&lt;P&gt;DL_DIR ?= "${BSPDIR}/downloads/"&lt;BR /&gt;ACCEPT_FSL_EULA = "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I'am using&amp;nbsp;core-image-base&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2019 10:32:04 GMT</pubDate>
    <dc:creator>pachedo</dc:creator>
    <dc:date>2019-04-30T10:32:04Z</dc:date>
    <item>
      <title>OpenCL in IMX8MQEVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-in-IMX8MQEVK/m-p/897027#M135485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'am having trouble following Diego Dorto tutorials.&lt;/P&gt;&lt;P&gt;&lt;A href="https://diegodorta.com.br/yocto/Setting-Up-Yocto.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://diegodorta.com.br/yocto/Setting-Up-Yocto.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://diegodorta.com.br/gpu/OpenCL-Overview.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://diegodorta.com.br/gpu/OpenCL-Overview.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second when I try to do&lt;/P&gt;&lt;PRE class="" style="color: #515151; background-color: #f5f5f5; font-size: 0.8rem; padding: 1rem;"&gt;&lt;CODE style="color: inherit; background-color: transparent; font-size: 12.8px;"&gt;&lt;SPAN class="" style="color: #003333;"&gt;$ $CC&lt;/SPAN&gt; hello.cpp &lt;SPAN class="" style="color: #2f6f9f;"&gt;-o&lt;/SPAN&gt; hello &lt;SPAN class="" style="color: #2f6f9f;"&gt;-Wl&lt;/SPAN&gt;,--library-path&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt;,&lt;SPAN class="" style="color: #cc3300;"&gt;\&lt;/SPAN&gt;  &lt;SPAN class="" style="color: #2f6f9f;"&gt;-rpath-link&lt;/SPAN&gt;&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt; &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lm&lt;/SPAN&gt; &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lOpenCL&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following output&lt;/P&gt;&lt;P&gt;hello.cpp:1:19: fatal error: CL/cl.h: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #515151; background-color: #f5f5f5; font-size: 0.8rem; padding: 1rem;"&gt;&lt;CODE style="color: inherit; background-color: transparent; font-size: 12.8px;"&gt;&lt;SPAN class="" style="color: #003333;"&gt;$ $CC&lt;/SPAN&gt; hello.cpp &lt;SPAN class="" style="color: #2f6f9f;"&gt;-o&lt;/SPAN&gt; hello &lt;SPAN class="" style="color: #2f6f9f;"&gt;-Wl&lt;/SPAN&gt;,--library-path&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt;,&lt;SPAN class="" style="color: #cc3300;"&gt;\&lt;/SPAN&gt;  &lt;SPAN class="" style="color: #2f6f9f;"&gt;-rpath-link&lt;/SPAN&gt;&lt;SPAN class="" style="color: #555555;"&gt;=&lt;/SPAN&gt;&amp;lt;PATH_TO_LIB&amp;gt; -I/usr/include &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lm&lt;/SPAN&gt; &lt;SPAN class="" style="color: #2f6f9f;"&gt;-lOpenCL&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and I get the following output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I didn't built an image and respective sdk with OpenCL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My local.conf:&lt;/P&gt;&lt;P&gt;MACHINE ??= 'imx8mqevk'&lt;BR /&gt;DISTRO ?= 'fsl-imx-xwayland'&lt;BR /&gt;PACKAGE_CLASSES ?= "package_rpm"&lt;BR /&gt;EXTRA_IMAGE_FEATURES ?= "debug-tweaks"&lt;BR /&gt;USER_CLASSES ?= "buildstats image-mklibs image-prelink"&lt;BR /&gt;PATCHRESOLVE = "noop"&lt;BR /&gt;BB_DISKMON_DIRS ??= "\&lt;BR /&gt; STOPTASKS,${TMPDIR},1G,100K \&lt;BR /&gt; STOPTASKS,${DL_DIR},1G,100K \&lt;BR /&gt; STOPTASKS,${SSTATE_DIR},1G,100K \&lt;BR /&gt; STOPTASKS,/tmp,100M,100K \&lt;BR /&gt; ABORT,${TMPDIR},100M,1K \&lt;BR /&gt; ABORT,${DL_DIR},100M,1K \&lt;BR /&gt; ABORT,${SSTATE_DIR},100M,1K \&lt;BR /&gt; ABORT,/tmp,10M,1K"&lt;BR /&gt;PACKAGECONFIG_append_pn-qemu-native = " sdl"&lt;BR /&gt;PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"&lt;BR /&gt;CONF_VERSION = "1"&lt;BR /&gt;IMAGE_INSTALL_append = "imx-gpu-viv"&lt;/P&gt;&lt;P&gt;DL_DIR ?= "${BSPDIR}/downloads/"&lt;BR /&gt;ACCEPT_FSL_EULA = "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I'am using&amp;nbsp;core-image-base&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 10:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenCL-in-IMX8MQEVK/m-p/897027#M135485</guid>
      <dc:creator>pachedo</dc:creator>
      <dc:date>2019-04-30T10:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL in IMX8MQEVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-in-IMX8MQEVK/m-p/897028#M135486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not enter the link you showed up, but in general try the L4.14 it includes support for OpenCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 15:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenCL-in-IMX8MQEVK/m-p/897028#M135486</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-05-07T15:14:59Z</dc:date>
    </item>
  </channel>
</rss>

