<?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>i.MX Processors中的主题 Re: CL_INVALID_VALUE  from clCreateKernel</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290760#M35247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right. Have you checked the instruction count? Old vivante drivers supported very limited count of instructions per kernel. I dont know what they did on more recent drivers. Try seperating your kernel. And do you know the version of the ocl driver you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2013 13:23:11 GMT</pubDate>
    <dc:creator>arthassin</dc:creator>
    <dc:date>2013-03-12T13:23:11Z</dc:date>
    <item>
      <title>CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290753#M35240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the kernel in the attached file, it is with the tiled convolution example from AMD with few minor changes (&lt;/P&gt;&lt;P&gt;I had to changed the use of pointers&amp;nbsp; to access vector data types. e.g. from :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;*(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;__local&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; float4&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;*)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;lclPlane&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;lcloffset4&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; horiz_filter&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;into:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; vload4&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;,&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;lclPlane&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;offset4&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Consolas;"&gt;]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;The file get compiled ok, but I get CL_INVALID_VALUE -30 for clCreateKernel..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;SPAN class="mce_paste_marker"&gt;Couldn't figure out why the clCreateKernel fails, and I should note that it works on Intel and Nvidia OpenCL sdks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;SPAN class="mce_paste_marker"&gt;I'm using sabre lite board with linaro-ubuntu-desktop &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;The opencl device:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;DEVICE_NAME = Vivante OpenCL Device&lt;/P&gt;&lt;P&gt;DEVICE_VENDOR = Vivante Corporation&lt;/P&gt;&lt;P&gt;DEVICE_VERSION = OpenCL 1.1&lt;/P&gt;&lt;P&gt;DRIVER_VERSION = OpenCL 1.1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Will appreciate your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336639"&gt;kernel.cl.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290753#M35240</guid>
      <dc:creator>eladshulman</dc:creator>
      <dc:date>2013-03-11T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290754#M35241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to bother you. I am new bee,&amp;nbsp; i just can not compile opencl c file on a new MX6 Q platform. my system is L3.0.35 linaro, when compiling, libopencl.so got many undefined references:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcoCL_DestroyTexture'&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcInvokeThreadWalker'&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcSHADER_GetConstantMemorySize'&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcSHADER_GetUniform'&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcoOS_DeleteMutex'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I have got &lt;/SPAN&gt;gpu-viv-bin-mx6q_1.1.0-1_armel.deb installed, there must be something with wrong configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 11:47:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290754#M35241</guid>
      <dc:creator>granttao</dc:creator>
      <dc:date>2013-03-11T11:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290755#M35242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to add -lGAL to your linker line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 12:34:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290755#M35242</guid>
      <dc:creator>eladshulman</dc:creator>
      <dc:date>2013-03-11T12:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290756#M35243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;But i got a segmentation fault when running, do you know the reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 13:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290756#M35243</guid>
      <dc:creator>granttao</dc:creator>
      <dc:date>2013-03-11T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290757#M35244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I can't tell without looking at your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 09:34:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290757#M35244</guid>
      <dc:creator>eladshulman</dc:creator>
      <dc:date>2013-03-12T09:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290758#M35245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are probably out of the kernel arguments limit. I think it was 9 for vivantes opencl platform. Check it by querying device for opencl info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 12:04:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290758#M35245</guid>
      <dc:creator>arthassin</dc:creator>
      <dc:date>2013-03-12T12:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290759#M35246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a limit to the number of constants arguments ( CL_DEVICE_MAX_CONSTANT_ARGS ).&lt;/P&gt;&lt;P&gt;The example uses only 1 constant arguments so I don't think that this is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, I deleted to content of the kernel and left only its header, than I tried to call clCreateKernel for this empty kernel and it worked. This means that this issue has something to do with the kernel content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 12:21:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290759#M35246</guid>
      <dc:creator>eladshulman</dc:creator>
      <dc:date>2013-03-12T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290760#M35247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right. Have you checked the instruction count? Old vivante drivers supported very limited count of instructions per kernel. I dont know what they did on more recent drivers. Try seperating your kernel. And do you know the version of the ocl driver you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:23:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290760#M35247</guid>
      <dc:creator>arthassin</dc:creator>
      <dc:date>2013-03-12T13:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: CL_INVALID_VALUE  from clCreateKernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290761#M35248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will try to seperate the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know the exact number - when querying the device I only get :&lt;/P&gt;&lt;P&gt;DEVICE_NAME = Vivante OpenCL Device&lt;/P&gt;&lt;P&gt;DEVICE_VENDOR = Vivante Corporation&lt;/P&gt;&lt;P&gt;DEVICE_VERSION = OpenCL 1.1&lt;/P&gt;&lt;P&gt;DRIVER_VERSION = OpenCL 1.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I tell the driver version ? and where can I found newer drivers to download ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 14:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CL-INVALID-VALUE-160-from-clCreateKernel/m-p/290761#M35248</guid>
      <dc:creator>eladshulman</dc:creator>
      <dc:date>2013-03-12T14:55:36Z</dc:date>
    </item>
  </channel>
</rss>

