<?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 Re: OpenCL BSP for Android 6.0 i.MX6Q in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750648#M116803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youxin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The libraries LibCLC.so and LibOpenCL.so has to be in your settings since this are done for the BSP release. You libraries look old probably form Kernel 3.0.35. Segmentation fault is memory problem that has no loaded with proper permission the libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 15:05:58 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2018-01-24T15:05:58Z</dc:date>
    <item>
      <title>OpenCL BSP for Android 6.0 i.MX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750647#M116802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've left reply in&amp;nbsp;&lt;A ___default_attr="93984" _jive_internal="true" _modifiedtitle="true" data-orig-content="OpenCL Hello World" href="https://community.nxp.com/docs/DOC-93984" jivemacro="document" style="color: #2989c5; text-decoration: none;" title="OpenCL Hello World"&gt;OpenCL Hello World&lt;/A&gt;, but thinking I should start a new question to attract eyeball.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on running&amp;nbsp;&lt;A ___default_attr="93984" _jive_internal="true" data-orig-content="OpenCL Hello World" href="https://community.nxp.com/docs/DOC-93984" jivemacro="document" title="OpenCL Hello World"&gt;OpenCL Hello World&lt;/A&gt;&amp;nbsp;on i.MX6q Android 6.0 BSP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've downloaded libCLC_Android.so and libOpenCL_Android.so from &lt;A ___default_attr="93984" _jive_internal="true" _modifiedtitle="true" data-orig-content="OpenCL Hello World" href="https://community.nxp.com/docs/DOC-93984" jivemacro="document" title="OpenCL Hello World"&gt;OpenCL Hello World&lt;/A&gt;. When I create Android.mk I will need to include&amp;nbsp;libVSC.so(using objectdump figured the gc functions out) in the dependencies, otherwise, it will fail to find gcXXXXX(CANNOT LINK EXECUTABLE: cannot locate symbol "gcSHADER_Destroy" referenced by "/system/lib/libOpenCL.so").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOCAL_SHARED_LIBRARIES := \&lt;BR /&gt;libGAL \&lt;BR /&gt;libVSC \&lt;BR /&gt;libOpenCL \&lt;BR /&gt;libCLC \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding libVSC, the host executable compiled OK, so that I can run it on iMX6,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I run it on i.MX6 I will get a "Segmentation fault" when calling&amp;nbsp;clBuildProgram, and I found crash report&amp;nbsp;like this in logcat,&amp;nbsp;&lt;/P&gt;&lt;P&gt;01-01 18:15:21.069 3478 3478 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0xb6dd585c in tid 3478 (opencl)&lt;BR /&gt;01-01 18:15:21.171 218 218 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;BR /&gt;01-01 18:15:21.171 218 218 F DEBUG : Build fingerprint: 'Ikegps/orca/orca:6.0.1/0.0.1-rc0/20171130:eng/release-keys'&lt;BR /&gt;01-01 18:15:21.171 218 218 F DEBUG : Revision: '0'&lt;BR /&gt;01-01 18:15:21.171 218 218 F DEBUG : ABI: 'arm'&lt;BR /&gt;01-01 18:15:21.171 218 218 F DEBUG : pid: 3478, tid: 3478, name: opencl &amp;gt;&amp;gt;&amp;gt; opencl &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;01-01 18:15:21.172 218 218 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb6dd585c&lt;BR /&gt;01-01 18:15:21.177 218 218 F DEBUG : r0 b6a7d748 r1 b6ddcdd3 r2 00000001 r3 00000069&lt;BR /&gt;01-01 18:15:21.177 218 218 F DEBUG : r4 b6a7d704 r5 ae4fc0d4 r6 b6dd585c r7 00000000&lt;BR /&gt;01-01 18:15:21.177 218 218 F DEBUG : r8 beb20550 r9 b6ddcdc8 sl 0000004f fp 0000000e&lt;BR /&gt;01-01 18:15:21.177 218 218 F DEBUG : ip 00000064 sp beb20448 lr b6e66057 pc b6e66066 cpsr 00010030&lt;BR /&gt;01-01 18:15:21.181 542 612 W NativeCrashListener: Couldn't find ProcessRecord for pid 3478&lt;BR /&gt;01-01 18:15:21.196 218 218 F DEBUG : &lt;BR /&gt;01-01 18:15:21.196 218 218 F DEBUG : backtrace:&lt;BR /&gt;01-01 18:15:21.197 218 218 E DEBUG : AM write failed: Broken pipe&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #00 pc 00015066 /system/lib/libVSC.so (gcSHADER_AddAttribute+209)&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #01 pc 00054f51 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #02 pc 00026e31 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #03 pc 0002722f /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #04 pc 000d319d /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #05 pc 000f5913 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #06 pc 00046e0d /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #07 pc 00018aa1 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #08 pc 0003a7b7 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #09 pc 00044d67 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #10 pc 00018a65 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #11 pc 0003ed03 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #12 pc 00018435 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #13 pc 0003eba9 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #14 pc 00018435 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #15 pc 0001711f /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #16 pc 00017497 /system/lib/libCLC.so&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #17 pc 00015f0f /system/lib/libCLC.so (gcCompileKernel+42)&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #18 pc 0000bbb9 /system/lib/libOpenCL.so (clBuildProgram+324)&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #19 pc 00000da1 /system/bin/opencl&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #20 pc 00017365 /system/lib/libc.so (__libc_init+44)&lt;BR /&gt;01-01 18:15:21.197 218 218 F DEBUG : #21 pc 00001060 /system/bin/opencl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which got a&amp;nbsp;fault addr when calling&amp;nbsp;gcSHADER_AddAttribute....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if the libCLC_Android.so and&amp;nbsp;libOpenCL_Android.so here is still usable for newer version kernel/Android BSP. If not, would somebody can help to build a library&amp;nbsp;suits?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other method I had tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Download Linux 4.1.15 BSP used for YCOTO project, pulled out the libCLC.so and libOpenCL.so from /usr/lib, then I encounter&amp;nbsp;dependency issue as expected, since Android has different libc, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be much appreciated&amp;nbsp;if someone can&amp;nbsp;provide any information or provide the suitable libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample code I used to test is updated to &lt;A href="https://github.com/suyouxin/opencl-test-imx6"&gt;here&lt;/A&gt; if you'd like to have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Youxin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 02:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750647#M116802</guid>
      <dc:creator>suyouxin</dc:creator>
      <dc:date>2018-01-24T02:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL BSP for Android 6.0 i.MX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750648#M116803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youxin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The libraries LibCLC.so and LibOpenCL.so has to be in your settings since this are done for the BSP release. You libraries look old probably form Kernel 3.0.35. Segmentation fault is memory problem that has no loaded with proper permission the libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750648#M116803</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-01-24T15:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL BSP for Android 6.0 i.MX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750649#M116804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Any chance NXP can provide libraries built for Kernel 4.1.15 in Android Setting? Or there is a release for this I don't know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Youxin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 20:43:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenCL-BSP-for-Android-6-0-i-MX6Q/m-p/750649#M116804</guid>
      <dc:creator>suyouxin</dc:creator>
      <dc:date>2018-01-24T20:43:56Z</dc:date>
    </item>
  </channel>
</rss>

