<?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: imx8 openCL clBuildProgram error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970285#M144546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , i do&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;clGetProgramBuildInfo to get&amp;nbsp; the error information ,log is:Failed to open the temporary file "/data/vendor/.opencl-cache/cl-xxx" for writing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;My kernel is only:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE style="color: #000000; font-size: 6.0pt;"&gt;&lt;SPAN style="color: #808000;"&gt;#define &lt;/SPAN&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;KERNEL_SRC &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"\n" &lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"__kernel void hello_kernel(__global const float *a,__global const float *b, __global float *result) \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"{                                                                                                   \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"   int gid = get_global_id(0);                                                                      \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"   result[gid] = a[gid] + b[gid];                                                                    \n"&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;" } "&lt;/SPAN&gt;
 &lt;/PRE&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;I also do it on xiaomi6x， and i can run process.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Sep 2019 01:33:40 GMT</pubDate>
    <dc:creator>1019599657</dc:creator>
    <dc:date>2019-09-29T01:33:40Z</dc:date>
    <item>
      <title>imx8 openCL clBuildProgram error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970283#M144544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , i use opencl at imx8 , i meet a error . when it run to the status=clBuildProgram(pgram,1,device,option,NULL,NULL), it will return error:&lt;SPAN style="color: #008000; font-weight: bold;"&gt;CL_BUILD_PROGRAM_FAILURE . I use&amp;nbsp;&lt;/SPAN&gt;clGetProgramBuildInfo to get error, i can get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build Log : error : Failed to open the temporary file /data/vendor/.opencl-cache/cl-640601. for writing.&lt;/P&gt;&lt;P&gt;How i can solve this error?&lt;span class="lia-inline-image-display-wrapper" image-alt="5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82990i7A5920170B9D14C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 07:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970283#M144544</guid>
      <dc:creator>1019599657</dc:creator>
      <dc:date>2019-09-25T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 openCL clBuildProgram error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970284#M144545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is typically caused by a syntax error in your kernel code. You can call the OpenCL function &lt;STRONG&gt;clGetProgramBuildInfo&lt;/STRONG&gt; with the flag &lt;STRONG&gt;CL_PROGRAM_BUILD_LOG&lt;/STRONG&gt; to access the log generated by the compiler. This log contains the output you are probably used to when compiling on the command-line (errors, warnings, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970284#M144545</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-09-27T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 openCL clBuildProgram error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970285#M144546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , i do&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;clGetProgramBuildInfo to get&amp;nbsp; the error information ,log is:Failed to open the temporary file "/data/vendor/.opencl-cache/cl-xxx" for writing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;My kernel is only:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE style="color: #000000; font-size: 6.0pt;"&gt;&lt;SPAN style="color: #808000;"&gt;#define &lt;/SPAN&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;KERNEL_SRC &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"\n" &lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"__kernel void hello_kernel(__global const float *a,__global const float *b, __global float *result) \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"{                                                                                                   \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"   int gid = get_global_id(0);                                                                      \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"   result[gid] = a[gid] + b[gid];                                                                    \n"&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;" } "&lt;/SPAN&gt;
 &lt;/PRE&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;I also do it on xiaomi6x， and i can run process.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Sep 2019 01:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970285#M144546</guid>
      <dc:creator>1019599657</dc:creator>
      <dc:date>2019-09-29T01:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 openCL clBuildProgram error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970286#M144547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i do "clGetProgramBuildInfo" to get error log,&lt;/P&gt;&lt;P&gt;the log is:&amp;nbsp;error : Failed to open the temporary file /data/vendor/.opencl-cache/cl-612501. for writing,&lt;/P&gt;&lt;P&gt;statues is &lt;SPAN style="color: #008000; font-weight: bold;"&gt;CL_BUILD_PROGRAM_FAILURE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;My kernel code is below. And i alse run it on xiaomi phone . I can run it success. How i can solve it ?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #000000; font-family: '宋体'; font-size: 6pt; background-color: #ffffff;"&gt;&lt;SPAN style="color: #808000;"&gt;#define &lt;/SPAN&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;KERNEL_SRC &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"\n" &lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"__kernel void hello_kernel(__global const float *a,__global const float *b, __global float *result) \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"{                                                                                                   \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"   int gid = get_global_id(0);                                                                      \n "&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"   result[gid] = a[gid] + b[gid];                                                                    \n"&lt;/SPAN&gt;\
    &lt;SPAN style="color: #008000; font-weight: bold;"&gt;" } "&lt;/SPAN&gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Sep 2019 01:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-openCL-clBuildProgram-error/m-p/970286#M144547</guid>
      <dc:creator>1019599657</dc:creator>
      <dc:date>2019-09-29T01:50:46Z</dc:date>
    </item>
  </channel>
</rss>

