OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Segment fault in clBuildProgram

Viet_Hung_N_
Beginner
230 Views

As I posted in subject https://software.intel.com/en-us/forums/topic/533980

Here is more informations:

[common@localhost ~]$ workspace/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...
*** Error in `workspace/BenchmarkX264/Debug/BenchmarkX264': munmap_chunk(): invalid pointer: 0x00007fd78c820210 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7bc07)[0x7fd7a7bf5c07]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xd6aefa)[0x7fd7969a0efa]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xdd9ae4)[0x7fd796a0fae4]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xdd9c00)[0x7fd796a0fc00]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xdae7f9)[0x7fd7969e47f9]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x2ac09d)[0x7fd795ee209d]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x2acf60)[0x7fd795ee2f60]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x29d5a4)[0x7fd795ed35a4]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x2a6d75)[0x7fd795edcd75]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x2a74d8)[0x7fd795edd4d8]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda55d8)[0x7fd7969db5d8]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda56b9)[0x7fd7969db6b9]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda58bb)[0x7fd7969db8bb]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x27df89)[0x7fd795eb3f89]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda55d8)[0x7fd7969db5d8]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda56b9)[0x7fd7969db6b9]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda58bb)[0x7fd7969db8bb]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x27b5b9)[0x7fd795eb15b9]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda52af)[0x7fd7969db2af]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0xda60d9)[0x7fd7969dc0d9]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x22a1a8)[0x7fd795e601a8]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x1feefc)[0x7fd795e34efc]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x2120c7)[0x7fd795e480c7]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so(+0x1f95d3)[0x7fd795e2f5d3]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libcpu_device.so(+0x2df57)[0x7fd798010f57]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libintelocl.so(+0xd0015)[0x7fd798a33015]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so(+0x13837)[0x7fd798508837]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so(+0x13c0e)[0x7fd798508c0e]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so(+0x2ae8d)[0x7fd79851fe8d]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2(+0x24fea)[0x7fd7983cafea]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2(+0x20f39)[0x7fd7983c6f39]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2(+0x1f416)[0x7fd7983c5416]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2(+0x1b410)[0x7fd7983c1410]
/opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2(+0x1b3b6)[0x7fd7983c13b6]
/lib64/libpthread.so.0(+0x7df3)[0x7fd7a8761df3]
/lib64/libc.so.6(clone+0x6d)[0x7fd7a7c7001d]
======= Memory map: ========
00400000-0051b000 r-xp 00000000 08:06 1635048                            /home/common/workspace/BenchmarkX264/Debug/BenchmarkX264
0071a000-0071b000 r--p 0011a000 08:06 1635048                            /home/common/workspace/BenchmarkX264/Debug/BenchmarkX264
0071b000-0071c000 rw-p 0011b000 08:06 1635048                            /home/common/workspace/BenchmarkX264/Debug/BenchmarkX264
0071c000-00797000 rw-p 00000000 00:00 0 
025bf000-05b2d000 rw-p 00000000 00:00 0                                  [heap]
7fd7854ee000-7fd787b76000 r-xp 00000000 08:06 134619547                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libclang_compiler.so
7fd787b76000-7fd787d75000 ---p 02688000 08:06 134619547                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libclang_compiler.so
7fd787d75000-7fd787e98000 r--p 02687000 08:06 134619547                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libclang_compiler.so
7fd787e98000-7fd787ee1000 rw-p 027aa000 08:06 134619547                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libclang_compiler.so
7fd787ee1000-7fd788000000 rw-p 00000000 00:00 0 
7fd788000000-7fd788021000 rw-p 00000000 00:00 0 
7fd788021000-7fd78c000000 ---p 00000000 00:00 0 
7fd78c000000-7fd78cb93000 rw-p 00000000 00:00 0 
7fd78cb93000-7fd790000000 ---p 00000000 00:00 0 
7fd790000000-7fd790021000 rw-p 00000000 00:00 0 
7fd790021000-7fd794000000 ---p 00000000 00:00 0 
7fd794280000-7fd794281000 ---p 00000000 00:00 0 
7fd794281000-7fd794681000 rw-p 00000000 00:00 0                          [stack:5529]
7fd794681000-7fd794682000 ---p 00000000 00:00 0 
7fd794682000-7fd794a82000 rw-p 00000000 00:00 0                          [stack:5528]
7fd794a82000-7fd794a83000 ---p 00000000 00:00 0 
7fd794a83000-7fd795004000 rw-p 00000000 00:00 0                          [stack:5527]
7fd795018000-7fd795066000 r--p 00000000 08:06 139595701                  /opt/intel/opencl-1.2-4.5.0.8/lib64/clbltfne9_img_cbk.o
7fd795066000-7fd7950e6000 rwxp 00000000 00:00 0 
7fd7950e6000-7fd79514a000 r--p 00000000 08:06 139595702                  /opt/intel/opencl-1.2-4.5.0.8/lib64/clbltfne9_img_cbk.rtl
7fd79514a000-7fd79534b000 rw-p 00000000 00:00 0 
7fd79534b000-7fd795453000 r--p 00000000 08:06 139595709                  /opt/intel/opencl-1.2-4.5.0.8/lib64/clbltfnshared.rtl
7fd795453000-7fd795564000 r--p 00000000 08:06 139595700                  /opt/intel/opencl-1.2-4.5.0.8/lib64/clbltfne9.rtl
7fd795564000-7fd795a35000 r-xp 00000000 08:06 139595697                  /opt/intel/opencl-1.2-4.5.0.8/lib64/__ocl_svml_e9.so
7fd795a35000-7fd795c35000 ---p 004d1000 08:06 139595697                  /opt/intel/opencl-1.2-4.5.0.8/lib64/__ocl_svml_e9.so
7fd795c35000-7fd795c36000 rw-p 004d1000 08:06 139595697                  /opt/intel/opencl-1.2-4.5.0.8/lib64/__ocl_svml_e9.so
7fd795c36000-7fd79726d000 r-xp 00000000 08:06 139595710                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so
7fd79726d000-7fd79746d000 ---p 01637000 08:06 139595710                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so
7fd79746d000-7fd79752b000 r--p 01637000 08:06 139595710                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so
7fd79752b000-7fd7975a8000 rw-p 016f5000 08:06 139595710                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOclCpuBackEnd.so
7fd7975a8000-7fd7978c7000 rw-p 00000000 00:00 0 
7fd7978c7000-7fd7978c9000 r-xp 00000000 08:06 74088815                   /usr/lib64/libscif.so.0.0.1
7fd7978c9000-7fd797ac8000 ---p 00002000 08:06 74088815                   /usr/lib64/libscif.so.0.0.1
7fd797ac8000-7fd797ac9000 rw-p 00001000 08:06 74088815                   /usr/lib64/libscif.so.0.0.1
7fd797ac9000-7fd797b3b000 r-xp 00000000 08:06 74088826                   /usr/lib64/libcoi_host.so.0
7fd797b3b000-7fd797d3b000 ---p 00072000 08:06 74088826                   /usr/lib64/libcoi_host.so.0
7fd797d3b000-7fd797d3f000 rw-p 00072000 08:06 74088826                   /usr/lib64/libcoi_host.so.0
7fd797d3f000-7fd797d4e000 rw-p 00000000 00:00 0 
7fd797d7d000-7fd797ddc000 r-xp 00000000 08:06 140908586                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libmic_device.so
7fd797ddc000-7fd797fdb000 ---p 0005f000 08:06 140908586                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libmic_device.so
7fd797fdb000-7fd797fde000 r--p 0005e000 08:06 140908586                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libmic_device.so
7fd797fde000-7fd797fe2000 rw-p 00061000 08:06 140908586                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libmic_device.so
7fd797fe2000-7fd797fe3000 rw-p 00000000 00:00 0 
7fd797fe3000-7fd798045000 r-xp 00000000 08:06 140908576                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcpu_device.so
7fd798045000-7fd798245000 ---p 00062000 08:06 140908576                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcpu_device.so
7fd798245000-7fd79824c000 r--p 00062000 08:06 140908576                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcpu_device.so
7fd79824c000-7fd79824f000 rw-p 00069000 08:06 140908576                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcpu_device.so
7fd79824f000-7fd798250000 rw-p 00000000 00:00 0 
7fd798250000-7fd798280000 r-xp 00000000 08:06 140908582                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtbbmalloc.so.2
7fd798280000-7fd798380000 ---p 00030000 08:06 140908582                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtbbmalloc.so.2
7fd798380000-7fd798384000 rw-p 00030000 08:06 140908582                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtbbmalloc.so.2
7fd798384000-7fd7983a6000 rw-p 00000000 00:00 0 
7fd7983a6000-7fd7983ee000 r-xp 00000000 08:06 140908580                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2
7fd7983ee000-7fd7984ee000 ---p 00048000 08:06 140908580                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2
7fd7984ee000-7fd7984f3000 rw-p 00048000 08:06 140908580                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtbb.so.2
7fd7984f3000-7fd7984f5000 rw-p 00000000 00:00 0 
7fd7984f5000-7fd79853b000 r-xp 00000000 08:06 140908578                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so
7fd79853b000-7fd79873b000 ---p 00046000 08:06 140908578                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so
7fd79873b000-7fd79873f000 r--p 00046000 08:06 140908578                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so
7fd79873f000-7fd798740000 rw-p 0004a000 08:06 140908578                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libtask_executor.so
7fd798740000-7fd798761000 r-xp 00000000 08:06 139595711                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcl_logger.so
7fd798761000-7fd798961000 ---p 00021000 08:06 139595711                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcl_logger.so
7fd798961000-7fd798962000 r--p 00021000 08:06 139595711                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcl_logger.so
7fd798962000-7fd798963000 rw-p 00022000 08:06 139595711                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libcl_logger.so
7fd798963000-7fd798ad4000 r-xp 00000000 08:06 140908577                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libintelocl.so
7fd798ad4000-7fd798cd3000 ---p 00171000 08:06 140908577                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libintelocl.so
7fd798cd3000-7fd798cea000 r--p 00170000 08:06 140908577                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libintelocl.so
7fd798cea000-7fd798cec000 rw-p 00187000 08:06 140908577                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libintelocl.so
7fd798cec000-7fd798e00000 rw-p 00000000 00:00 0 
7fd798e00000-7fd799600000 rw-p 00000000 00:00 0 
7fd799600000-7fd799800000 rw-p 00000000 00:00 0 
7fd799800000-7fd79a200000 rw-p 00000000 00:00 0 
7fd79a200000-7fd79a600000 rw-p 00000000 00:00 0 
7fd79a600000-7fd79ae00000 rw-p 00000000 00:00 0 
7fd79ae00000-7fd79b000000 rw-p 00000000 00:00 0 
7fd79b000000-7fd79ba00000 rw-p 00000000 00:00 0 
7fd79ba00000-7fd79bc00000 rw-p 00000000 00:00 0 
7fd79bc00000-7fd79c400000 rw-p 00000000 00:00 0 
7fd79c400000-7fd79c600000 rw-p 00000000 00:00 0 
7fd79c600000-7fd79d000000 rw-p 00000000 00:00 0 
7fd79d000000-7fd79d200000 rw-p 00000000 00:00 0 
7fd79d200000-7fd79da00000 rw-p 00000000 00:00 0 
7fd79da00000-7fd79dc00000 rw-p 00000000 00:00 0 
7fd79dc00000-7fd79e600000 rw-p 00000000 00:00 0 
7fd79e600000-7fd79e800000 rw-p 00000000 00:00 0 
7fd79e800000-7fd79f000000 rw-p 00000000 00:00 0 
7fd79f000000-7fd79f200000 rw-p 00000000 00:00 0 
7fd79f200000-7fd79fc00000 rw-p 00000000 00:00 0 
7fd79fc00000-7fd7a0000000 rw-p 00000000 00:00 0 
7fd7a0000000-7fd7a0800000 rw-p 00000000 00:00 0 
7fd7a0800000-7fd7a0a00000 rw-p 00000000 00:00 0 
7fd7a0a00000-7fd7a1400000 rw-p 00000000 00:00 0 
7fd7a1400000-7fd7a147e000 rw-p 00000000 00:00 0 
7fd7a147e000-7fd7a1485000 r-xp 00000000 08:06 67120903                   /usr/lib64/librt-2.17.so
7fd7a1485000-7fd7a1684000 ---p 00007000 08:06 67120903                   /usr/lib64/librt-2.17.so
7fd7a1684000-7fd7a1685000 r--p 00006000 08:06 67120903                   /usr/lib64/librt-2.17.so
7fd7a1685000-7fd7a1686000 rw-p 00007000 08:06 67120903                   /usr/lib64/librt-2.17.so
7fd7a1686000-7fd7a1690000 r-xp 00000000 08:06 67329598                   /usr/lib64/libnuma.so.1
7fd7a1690000-7fd7a1890000 ---p 0000a000 08:06 67329598                   /usr/lib64/libnuma.so.1
7fd7a1890000-7fd7a1891000 r--p 0000a000 08:06 67329598                   /usr/lib64/libnuma.so.1
7fd7a1891000-7fd7a1892000 rw-p 0000b000 08:06 67329598                   /usr/lib64/libnuma.so.1
7fd7a1892000-7fd7a1899000 r-xp 00000000 08:06 139595696                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOpenCL.so.1.2
7fd7a1899000-7fd7a1a98000 ---p 00007000 08:06 139595696                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOpenCL.so.1.2
7fd7a1a98000-7fd7a1a99000 r--p 00006000 08:06 139595696                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOpenCL.so.1.2
7fd7a1a99000-7fd7a1a9a000 rw-p 00007000 08:06 139595696                  /opt/intel/opencl-1.2-4.5.0.8/lib64/libOpenCL.so.1.2
7fd7a1a9a000-7fd7a1a9b000 ---p 00000000 00:00 0 
7fd7a1a9b000-7fd7a229b000 rw-p 00000000 00:00 0                          [stack:5526]
7fd7a229b000-7fd7a229c000 ---p 00000000 00:00 0 
7fd7a229c000-7fd7a2a9c000 rw-p 00000000 00:00 0                          [stack:5525]
7fd7a2a9c000-7fd7a2a9d000 ---p 00000000 00:00 0 
7fd7a2a9d000-7fd7a329d000 rw-p 00000000 00:00 0                          [stack:5524]
7fd7a329d000-7fd7a329e000 ---p 00000000 00:00 0 
7fd7a329e000-7fd7a3a9e000 rw-p 00000000 00:00 0                          [stack:5523]
7fd7a3a9e000-7fd7a3a9f000 ---p 00000000 00:00 0 
7fd7a3a9f000-7fd7a429f000 rw-p 00000000 00:00 0                          [stack:5522]
7fd7a429f000-7fd7a42a0000 ---p 00000000 00:00 0 
7fd7a42a0000-7fd7a4aa0000 rw-p 00000000 00:00 0                          [stack:5521]
7fd7a4aa0000-7fd7a4aa1000 ---p 00000000 00:00 0 
7fd7a4aa1000-7fd7a52a1000 rw-p 00000000 00:00 0                          [stack:5520]
7fd7a52a1000-7fd7a52a2000 ---p 00000000 00:00 0 
7fd7a52a2000-7fd7a5aa2000 rw-p 00000000 00:00 0                          [stack:5519]
7fd7a5aa2000-7fd7a5aa3000 ---p 00000000 00:00 0 
7fd7a5aa3000-7fd7a62a3000 rw-p 00000000 00:00 0                          [stack:5518]
7fd7a62a3000-7fd7a62a4000 ---p 00000000 00:00 0 
7fd7a62a4000-7fd7a6c00000 rw-p 00000000 00:00 0                          [stack:5517]
7fd7a6c00000-7fd7a7800000 rw-p 00000000 00:00 0 
7fd7a7800000-7fd7a7b7a000 rw-p 00000000 00:00 0 
7fd7a7b7a000-7fd7a7d30000 r-xp 00000000 08:06 67116969                   /usr/lib64/libc-2.17.so
7fd7a7d30000-7fd7a7f30000 ---p 001b6000 08:06 67116969                   /usr/lib64/libc-2.17.so
7fd7a7f30000-7fd7a7f34000 r--p 001b6000 08:06 67116969                   /usr/lib64/libc-2.17.so
7fd7a7f34000-7fd7a7f36000 rw-p 001ba000 08:06 67116969                   /usr/lib64/libc-2.17.so
7fd7a7f36000-7fd7a7f3b000 rw-p 00000000 00:00 0 
7fd7a7f3b000-7fd7a7f50000 r-xp 00000000 08:06 68649257                   /usr/lib64/libgcc_s-4.8.2-20140120.so.1
7fd7a7f50000-7fd7a814f000 ---p 00015000 08:06 68649257                   /usr/lib64/libgcc_s-4.8.2-20140120.so.1
7fd7a814f000-7fd7a8150000 r--p 00014000 08:06 68649257                   /usr/lib64/libgcc_s-4.8.2-20140120.so.1
7fd7a8150000-7fd7a8151000 rw-p 00015000 08:06 68649257                   /usr/lib64/libgcc_s-4.8.2-20140120.so.1
7fd7a8151000-7fd7a8252000 r-xp 00000000 08:06 67116977                   /usr/lib64/libm-2.17.so
7fd7a8252000-7fd7a8451000 ---p 00101000 08:06 67116977                   /usr/lib64/libm-2.17.so
7fd7a8451000-7fd7a8452000 r--p 00100000 08:06 67116977                   /usr/lib64/libm-2.17.so
7fd7a8452000-7fd7a8453000 rw-p 00101000 08:06 67116977                   /usr/lib64/libm-2.17.so
7fd7a8453000-7fd7a853c000 r-xp 00000000 08:06 67120932                   /usr/lib64/libstdc++.so.6.0.19
7fd7a853c000-7fd7a873b000 ---p 000e9000 08:06 67120932                   /usr/lib64/libstdc++.so.6.0.19
7fd7a873b000-7fd7a8743000 r--p 000e8000 08:06 67120932                   /usr/lib64/libstdc++.so.6.0.19Stack 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'
Aborted (core dumped)

Please help me resolve this problem!

0 Kudos
5 Replies
Robert_I_Intel
Employee
230 Views

Viet Hung,

This could be a different issue. Please provide a small reproducer (.cpp and .cl file that I can build, verify the problem and send to the engineering team to fix).

Thank You!

 

Robert

Viet_Hung_N_
Beginner
230 Views

I am a newbie to OpenCL, so I attach here whole project. Please check it. I think segment fault results in libx264.

Viet_Hung_N_
Beginner
230 Views

For more information about my platform. Here it is:

[common@localhost Debug]$ ../../OpenCLDetection/Debug/OpenCLDetection 
clDeviceQuery Starting...

1 OpenCL Platforms found

 CL_PLATFORM_NAME: 	Intel(R) OpenCL
 CL_PLATFORM_VERSION: 	OpenCL 1.2 LINUX
OpenCL Device Info:

 1 devices found supporting OpenCL on: Intel(R) OpenCL

 ----------------------------------
 Device        Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
 ---------------------------------
 CL_DEVICE_NAME: 			       Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
 CL_DEVICE_VENDOR: 			Intel(R) Corporation
 CL_DRIVER_VERSION: 			1.2.0.8
 CL_DEVICE_TYPE:			CL_DEVICE_TYPE_CPU
 CL_DEVICE_MAX_COMPUTE_UNITS:		4
 CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:	3
 CL_DEVICE_MAX_WORK_ITEM_SIZES:	8192 / 8192 / 8192 
 CL_DEVICE_MAX_WORK_GROUP_SIZE:	8192
 CL_DEVICE_MAX_CLOCK_FREQUENCY:	2900 MHz
 CL_DEVICE_ADDRESS_BITS:		64
 CL_DEVICE_MAX_MEM_ALLOC_SIZE:		1881 MByte
 CL_DEVICE_GLOBAL_MEM_SIZE:		7526 MByte
 CL_DEVICE_ERROR_CORRECTION_SUPPORT:	no
 CL_DEVICE_LOCAL_MEM_TYPE:		global
 CL_DEVICE_LOCAL_MEM_SIZE:		32 KByte
 CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:	128 KByte
 CL_DEVICE_QUEUE_PROPERTIES:		CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE
 CL_DEVICE_QUEUE_PROPERTIES:		CL_QUEUE_PROFILING_ENABLE
 CL_DEVICE_IMAGE_SUPPORT:		1
 CL_DEVICE_MAX_READ_IMAGE_ARGS:	480
 CL_DEVICE_MAX_WRITE_IMAGE_ARGS:	480

 CL_DEVICE_IMAGE <dim>			2D_MAX_WIDTH	 16384
					2D_MAX_HEIGHT	 16384
					3D_MAX_WIDTH	 2048
					3D_MAX_HEIGHT	 2048
					3D_MAX_DEPTH	 2048
 CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>	CHAR 1, SHORT 1, INT 1, FLOAT 1, DOUBLE 1


clDeviceQuery, Platform Name = Intel(R) OpenCL, Platform Version = OpenCL 1.2 LINUX, NumDevs = 1, Device =        Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz

System Info: 

 Local Time/Date =  14:47:14, 11/07/2014
 CPU Name: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz 
 # of CPU processors: 4
 Linux version 3.10.0-123.9.3.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Thu Nov 6 15:06:03 UTC 2014


TEST PASSED

 

Robert_I_Intel
Employee
230 Views

Viet Hung,

Thank you for reporting this issue. I communicated it to the compiler team.

Robert

Robert_I_Intel
Employee
230 Views

If you need a quick workaround, you can turn off vectorization by CL_CONFIG_USE_VECTORIZER or by supplying a vector type in vec_type_hint. See https://software.intel.com/en-us/node/531302, https://software.intel.com/en-us/node/531303

Compiler team is looking for a more permanent solution.

Reply