<?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 I faced same problem as in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032353#M3595</link>
    <description>&lt;P&gt;I faced same problem as follow:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[common@localhost BenchmarkX264]$ Debug/BenchmarkX264 
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: OpenCL acceleration enabled with Intel(R) Corporation        Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz 
x264 [info]: Compiling OpenCL kernels...
Stack dump:
0.	Running pass 'Intel OpenCL Vectorizer' on module 'Program'.
1.	Running pass 'Intel OpenCL VectorizerCore' on function '@__Vectorized_.sum_inter_cost'
2.	Running pass 'PacketizeFunction' on function '@__Vectorized_.sum_inter_cost'
Segmentation fault (core dumped)&lt;/PRE&gt;

&lt;P&gt;My platform is CentOS 7 x86_84. Please guide me or if you need more information, please tell me.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2014 04:40:31 GMT</pubDate>
    <dc:creator>Viet_Hung_N_</dc:creator>
    <dc:date>2014-10-30T04:40:31Z</dc:date>
    <item>
      <title>segmentation fault inside clBuildProgram (bug demo attached)</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032351#M3593</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I am experiencing a&amp;nbsp;&lt;/SPAN&gt;segmentation&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;fault inside the call to clBuildProgram when using the Intel platform and Intel Xenon CPU. &amp;nbsp; This is for a relatively complex kernel / OpenCL program. &amp;nbsp;Simple kernels build fine. &amp;nbsp;I am not having any problem building the same source code on the Apple or NVIDIA platforms.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I am attaching a bug demonstration program with as simple kernel. &amp;nbsp;Please private message or email me for the offending kernel source code file.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;g++ -o build_bug_demo opencl_program_build.cpp bugDemoSupport.cpp -I$OPENCL_INC_DIR -L$OPENCL_LIB_DIR -lOpenCL

# Here is what I see for the offending program source:
./build_bug_demo -p 2
Selected CL_PLATFORM_NAME: Intel(R) OpenCL
CL_DEVICE_NAME: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz
CL_DRIVER_VERSION: 1.2.0.92
Loading Source...
clCreateProgramWithSource...
clBuildProgram...
Stack dump:
0.    Running pass 'Intel OpenCL Vectorizer' on module 'Program'.
1.    Running pass 'Intel OpenCL VectorizerCore' on function '@__Vectorized_.sum_reduce_over_velocity_space_stage1'
2.    Running pass 'Predicator' on function '@__Vectorized_.sum_reduce_over_velocity_space_stage1'
Segmentation fault (core dumped)
&lt;/PRE&gt;

&lt;P&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial; line-height: normal;" /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 01:54:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032351#M3593</guid>
      <dc:creator>Noah_R_</dc:creator>
      <dc:date>2014-10-22T01:54:22Z</dc:date>
    </item>
    <item>
      <title>Noah,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032352#M3594</link>
      <description>&lt;P&gt;Noah,&lt;/P&gt;

&lt;P&gt;Sorry you are experiencing a problem with our OpenCL compiler. I will send you a private message.&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;/P&gt;

&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 02:00:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032352#M3594</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2014-10-22T02:00:36Z</dc:date>
    </item>
    <item>
      <title>I faced same problem as</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032353#M3595</link>
      <description>&lt;P&gt;I faced same problem as follow:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[common@localhost BenchmarkX264]$ Debug/BenchmarkX264 
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: OpenCL acceleration enabled with Intel(R) Corporation        Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz 
x264 [info]: Compiling OpenCL kernels...
Stack dump:
0.	Running pass 'Intel OpenCL Vectorizer' on module 'Program'.
1.	Running pass 'Intel OpenCL VectorizerCore' on function '@__Vectorized_.sum_inter_cost'
2.	Running pass 'PacketizeFunction' on function '@__Vectorized_.sum_inter_cost'
Segmentation fault (core dumped)&lt;/PRE&gt;

&lt;P&gt;My platform is CentOS 7 x86_84. Please guide me or if you need more information, please tell me.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 04:40:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032353#M3595</guid>
      <dc:creator>Viet_Hung_N_</dc:creator>
      <dc:date>2014-10-30T04:40:31Z</dc:date>
    </item>
    <item>
      <title>If you need a quick</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032354#M3596</link>
      <description>&lt;P&gt;If you need a quick workaround, you can turn off vectorization by &lt;SAMP&gt;CL_CONFIG_USE_VECTORIZER&lt;/SAMP&gt; or by supplying a vector type in vec_type_hint. See &lt;A href="https://software.intel.com/en-us/node/531302"&gt;&lt;U&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/node/531302" target="_blank"&gt;https://software.intel.com/en-us/node/531302&lt;/A&gt;, &lt;A name="_MailEndCompose"&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/node/531303"&gt;&lt;U&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/node/531303" target="_blank"&gt;https://software.intel.com/en-us/node/531303&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Compiler team is looking for a more permanent solution.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 00:14:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032354#M3596</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2014-11-12T00:14:27Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032355#M3597</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the same problem&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ ./Release/Sibernetic 
Sibernetic: no arguments specified, run method executing
Configuration was loaded
 CL_PLATFORM_VERSION [0]: 	OpenCL 1.2 LINUX
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]:	       Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz

CL_CONTEXT_PLATFORM [0]: CL_DEVICE_TYPE [0]:	CPU
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]: 	8192
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]: 	8
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]: 	0
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]:	262144
CL_CONTEXT_PLATFORM 0: CL_DEVICE_LOCAL_MEM_SIZE [0]:	32768
Stack dump:
0.	Running pass 'Intel OpenCL Vectorizer' on module 'main'.
1.	Running pass 'Intel OpenCL VectorizerCore' on function '@__Vectorized_.computeInteractionWithMembranes'
2.	Running pass 'Predicator' on function '@__Vectorized_.computeInteractionWithMembranes'
Segmentation fault (core dumped)&lt;/PRE&gt;

&lt;P&gt;After I installed &lt;A href="https://software.intel.com/en-us/articles/intel-code-builder-for-opencl-api"&gt;intel code builder&lt;/A&gt;&amp;nbsp;for Ubuntu 14.04 &lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;x86_64.&lt;/SPAN&gt;. Actually I don't remember such problem with other version of drivers or on other platforms AMD or NVIDIA. Source code you can find&amp;nbsp;&lt;A href="https://github.com/openworm/sibernetic"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 09:58:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032355#M3597</guid>
      <dc:creator>Sergey_K_2</dc:creator>
      <dc:date>2015-12-11T09:58:03Z</dc:date>
    </item>
    <item>
      <title>Hi everyone,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032356#M3598</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I am experiencing the same problem running the example for Linux "intel_ocl_gemm",&amp;nbsp; even though vectorization is off.&lt;/P&gt;

&lt;P&gt;Is there any effective workaround for this issue? I attached my code. Notice that I have added the required debug flags for building the program:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[lvs@eredmithrim GEMM]$ gdb --args ./GEMM
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-47.el6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;...
Reading symbols from /home/wimi/lvs/ESA_Projects/bioinfo/docking_src/intel/intel_ocl_gemm/GEMM/GEMM...done.
(gdb) b 283
Breakpoint 1 at 0x40e6fa: /home/wimi/lvs/ESA_Projects/bioinfo/docking_src/intel/intel_ocl_gemm/GEMM/gemm.cpp:283. (2 locations)
(gdb) r
Starting program: /home/wimi/lvs/ESA_Projects/bioinfo/docking_src/intel/intel_ocl_gemm/GEMM/./GEMM 
Missing separate debuginfo for /usr/lib64/libOpenCL.so.1
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/bc/f3fa717d4202742c8a899209eec04219b89f22.debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Platforms (1):
    [0] Intel(R) OpenCL [Selected]
Devices (1):
    [0] Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz [Selected]
[New Thread 0x7ffff4b74700 (LWP 17172)]
[New Thread 0x7ffff4773700 (LWP 17173)]
[New Thread 0x7fffeffff700 (LWP 17174)]
Build program options: "-DT=float -DTILE_SIZE_M=1 -DTILE_GROUP_M=16 -DTILE_SIZE_N=128 -DTILE_GROUP_N=1 -DTILE_SIZE_K=8 -g -s /home/wimi/lvs/ESA_Projects/bioinfo/docking_src/intel/intel_ocl_gemm/GEMM/gemm.cl"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6000948 in ?? () from /opt/intel/opencl-1.2-5.2.0.10002/lib64/libOclCpuBackEnd.so
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.7.x86_64 ncurses-libs-5.7-4.20090207.el6.x86_64 numactl-2.0.9-2.el6.x86_64 opencl-1.2-intel-cpu-5.2.0.10002-1.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) 
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 09:54:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032356#M3598</guid>
      <dc:creator>LSolis</dc:creator>
      <dc:date>2016-05-19T09:54:27Z</dc:date>
    </item>
    <item>
      <title>Could you try our latest CPU</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032357#M3599</link>
      <description>&lt;P&gt;Could you try our latest CPU runtime &lt;A href="https://software.intel.com/en-us/articles/opencl-drivers#core_xeon" target="_blank"&gt;https://software.intel.com/en-us/articles/opencl-drivers#core_xeon&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;See if you experience the same issue. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 17:30:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032357#M3599</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2016-05-19T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Quote:Robert I. (Intel) wrote</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032358#M3600</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Robert I. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Could you try our latest CPU runtime &lt;A href="https://software.intel.com/en-us/articles/opencl-drivers#core_xeon"&gt;https://software.intel.com/en-us/articles/opencl-drivers#core_xeon&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;See if you experience the same issue. Thanks!&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I tried what you suggested (I installed opencl_runtime_16.1_x64_rh_5.2.0.10002), but I got the same result.&lt;/P&gt;

&lt;P&gt;Any ideas on how to successfully debug kernels?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 09:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032358#M3600</guid>
      <dc:creator>LSolis</dc:creator>
      <dc:date>2016-05-24T09:27:00Z</dc:date>
    </item>
    <item>
      <title>Hi everyone,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032359#M3601</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I am able to debug kernel code. The trick to avoid that segmentation fault was to install a previous Intel OpenCL runtime, i.e. the 15.1 one.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The latest runtime still produces segmentation fault on my CentOS 6.7 machine, as stated above.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:41:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/segmentation-fault-inside-clBuildProgram-bug-demo-attached/m-p/1032359#M3601</guid>
      <dc:creator>LSolis</dc:creator>
      <dc:date>2016-06-02T12:41:31Z</dc:date>
    </item>
  </channel>
</rss>

