<?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 was able to build with the in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094215#M4985</link>
    <description>&lt;P&gt;I was able to build with the following options&lt;/P&gt;

&lt;P&gt;cmake -DOPENCL_INCLUDE_DIRS=/opt/intel/opencl/include -DOPENCL_LIBRARIES=/opt/intel/opencl/libOpenCL.so .&lt;/P&gt;

&lt;P&gt;make&lt;/P&gt;

&lt;P&gt;Note there are no spaces between -D and the variable it sets.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 22:57:33 GMT</pubDate>
    <dc:creator>Robert_I_Intel</dc:creator>
    <dc:date>2015-12-03T22:57:33Z</dc:date>
    <item>
      <title>OpenCL example program(HelloWorld.cpp) cmake&amp;make failed! CentOS 7</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094212#M4982</link>
      <description>&lt;P&gt;I download example code in “OpenCL Programming Guide” (by Aaftab Munshi…), but some error occurred while cmake .&lt;/P&gt;

&lt;P&gt;&lt;A name="OLE_LINK3"&gt;——————————————————————————————————————————&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[ &amp;nbsp;OpenCL_Programming_Guide]# pwd&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;/home/OpenCL_Study/&lt;A name="OLE_LINK1"&gt;OpenCL_Programming_Guide&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[ &amp;nbsp;OpenCL_Programming_Guide]# cmake .&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;CMake Error at /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Could NOT find OpenCL (missing: OPENCL_LIBRARIES OPENCL_INCLUDE_DIRS)&lt;/P&gt;

&lt;P&gt;Call Stack (most recent call first):&lt;/P&gt;

&lt;P&gt;&amp;nbsp; /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; cmake/FindOpenCL.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; CMakeLists.txt:9 (find_package)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-- Configuring incomplete, errors occurred!&lt;/P&gt;

&lt;P&gt;See also "/home/OpenCL_Study/OpenCL_Programming_Guide/CMakeFiles/CMakeOutput.log".&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[ &amp;nbsp;OpenCL_Programming_Guide]# cmake .&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;CMake Error at /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Could NOT find OpenCL (missing: OPENCL_LIBRARIES OPENCL_INCLUDE_DIRS)&lt;/P&gt;

&lt;P&gt;Call Stack (most recent call first):&lt;/P&gt;

&lt;P&gt;&amp;nbsp; /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; cmake/FindOpenCL.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; CMakeLists.txt:9 (find_package)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-- Configuring incomplete, errors occurred!&lt;/P&gt;

&lt;P&gt;See also "/home/OpenCL_Study/OpenCL_Programming_Guide/CMakeFiles/CMakeOutput.log".&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[ &amp;nbsp;OpenCL_Programming_Guide]# echo $OPENCL_LIBRARIES&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;/opt/intel/opencl-1.2-sdk-5.0.0.93/lib64&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[ &amp;nbsp;OpenCL_Programming_Guide]# echo $OPENCL_INCLUDE_DIRS&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;/opt/intel/opencl/include/&lt;/P&gt;

&lt;P&gt;——————————————————————————————————————————&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Both OPENCL_LIBRARIES and OPENCL_INCLUDE_DIRS were set manually by me. (Not set by installed intel_code_builder_for_opencl_2015_5.0.0.62_x64)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;However, I used cmake-gui to cmake is OK:&lt;/P&gt;

&lt;P style="margin-left: -35.4pt;"&gt;&lt;IMG width="642" height="414" src="file:/C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg" /&gt;&lt;/P&gt;

&lt;P style="margin-left: -35.4pt;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-left: -35.4pt;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;——————————————————————————————————————————&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[OPG_output]# make&lt;/STRONG&gt;&lt;/P&gt;

&lt;P align="left"&gt;Scanning dependencies of target HelloWorld&lt;/P&gt;

&lt;P align="left"&gt;[&amp;nbsp; 8%] Building CXX object src/Chapter_2/HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o&lt;/P&gt;

&lt;P align="left"&gt;/home/OpenCL_Study/OpenCL_Programming_Guide/src/Chapter_2/HelloWorld/HelloWorld.cpp: In function \u2018_cl_command_queue* CreateCommandQueue(cl_context, _cl_device_id**)\u2019:&lt;/P&gt;

&lt;P align="left"&gt;/home/OpenCL_Study/OpenCL_Programming_Guide/src/Chapter_2/HelloWorld/HelloWorld.cpp:116:20: warning: \u2018_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)\u2019 is deprecated (declared at /opt/intel/opencl/include/CL/cl.h:1359) [-Wdeprecated-declarations]&lt;/P&gt;

&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandQueue = clCreateCommandQueue(context, devices[0], 0, NULL);&lt;/P&gt;

&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;

&lt;P align="left"&gt;/home/OpenCL_Study/OpenCL_Programming_Guide/src/Chapter_2/HelloWorld/HelloWorld.cpp:116:69: warning: \u2018_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)\u2019 is deprecated (declared at /opt/intel/opencl/include/CL/cl.h:1359) [-Wdeprecated-declarations]&lt;/P&gt;

&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandQueue = clCreateCommandQueue(context, devices[0], 0, NULL);&lt;/P&gt;

&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;^&lt;/P&gt;

&lt;P align="left"&gt;Linking CXX executable HelloWorld&lt;/P&gt;

&lt;P align="left"&gt;CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateContext()':&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x21): undefined reference to `clGetPlatformIDs'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0xa2): undefined reference to `clCreateContextFromType'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0xeb): undefined reference to `clCreateContextFromType'&lt;/P&gt;

&lt;P align="left"&gt;CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateCommandQueue(_cl_context*, _cl_device_id**)':&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x161): undefined reference to `clGetContextInfo'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x1f4): undefined reference to `clGetContextInfo'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x243): undefined reference to `clCreateCommandQueue'&lt;/P&gt;

&lt;P align="left"&gt;CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateProgram(_cl_context*, _cl_device_id*, char const*)':&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x3ac): undefined reference to `clCreateProgramWithSource'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x404): undefined reference to `clBuildProgram'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x43a): undefined reference to `clGetProgramBuildInfo'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x476): undefined reference to `clReleaseProgram'&lt;/P&gt;

&lt;P align="left"&gt;CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateMemObjects(_cl_context*, _cl_mem**, float*, float*)':&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x535): undefined reference to `clCreateBuffer'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x564): undefined reference to `clCreateBuffer'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x590): undefined reference to `clCreateBuffer'&lt;/P&gt;

&lt;P align="left"&gt;CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `Cleanup(_cl_context*, _cl_command_queue*, _cl_program*, _cl_kernel*, _cl_mem**)':&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x64e): undefined reference to `clReleaseMemObject'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x66b): undefined reference to `clReleaseCommandQueue'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x67e): undefined reference to `clReleaseKernel'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x691): undefined reference to `clReleaseProgram'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x6a4): undefined reference to `clReleaseContext'&lt;/P&gt;

&lt;P align="left"&gt;CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `main':&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x7dd): undefined reference to `clCreateKernel'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x8d8): undefined reference to `clSetKernelArg'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x8fc): undefined reference to `clSetKernelArg'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x920): undefined reference to `clSetKernelArg'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0x9bf): undefined reference to `clEnqueueNDRangeKernel'&lt;/P&gt;

&lt;P align="left"&gt;HelloWorld.cpp:(.text+0xa52): undefined reference to `clEnqueueReadBuffer'&lt;/P&gt;

&lt;P align="left"&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;

&lt;P align="left"&gt;make[2]: *** [src/Chapter_2/HelloWorld/HelloWorld] Error 1&lt;/P&gt;

&lt;P align="left"&gt;make[1]: *** [src/Chapter_2/HelloWorld/CMakeFiles/HelloWorld.dir/all] Error 2&lt;/P&gt;

&lt;P align="left"&gt;make: *** [all] Error 2&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[ &amp;nbsp;OPG_output]#&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;——————————————————————————————————————————&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;It’s seemed that I still not configure environment correctly. Could you give me some advices?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Something you may want to know:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;A name="OLE_LINK2"&gt;&lt;STRONG&gt;————————————————————————————————————————————&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;# find / -name libOpenCL.so*&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;/opt/intel/opencl/libOpenCL.so.1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;/opt/intel/opencl/libOpenCL.so&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;/opt/intel/opencl/libOpenCL.so.1.2&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp; Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;————————————————————————————————————————————&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 02:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094212#M4982</guid>
      <dc:creator>然_魏_</dc:creator>
      <dc:date>2015-12-03T02:28:09Z</dc:date>
    </item>
    <item>
      <title>When running cmake you can</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094213#M4983</link>
      <description>&lt;P&gt;When running cmake you can run it with -D options to specify the variables that you wish to define. Looks like you are not linking your executable correctly. Try to add &lt;STRONG&gt;/opt/intel/OpenCL/ to your LD_LIBRARY_PATH.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Could you also attach &lt;STRONG&gt;OpenCL_Programming_Guide.tar.gz to this thread so I can try to build it on my machine?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 02:44:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094213#M4983</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-12-03T02:44:34Z</dc:date>
    </item>
    <item>
      <title>Quote:Robert Ioffe (Intel)</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094214#M4984</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Robert Ioffe (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;When running cmake you can run it with -D options to specify the variables that you wish to define. Looks like you are not linking your executable correctly. Try to add &lt;STRONG&gt;/opt/intel/OpenCL/ to your LD_LIBRARY_PATH.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Could you also attach &lt;STRONG&gt;OpenCL_Programming_Guide.tar.gz to this thread so I can try to build it on my machine?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Please forgive me I’m a beginner in cmake…&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I have tried lots of ways but still made the mistake…..&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Whether:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;———————————————————————————————————&lt;/P&gt;

&lt;P align="left"&gt;[root@storm108 OpenCL_Programming_Guide]# cmake -D OPENCL_INCLUDE_DIRS=/opt/intel/opencl/include/&lt;/P&gt;

&lt;P align="left"&gt;CMake Error: The source directory "/home/OpenCL_Study/OpenCL_Programming_Guide/OPENCL_INCLUDE_DIRS=/opt/intel/opencl/include" does not exist.&lt;/P&gt;

&lt;P&gt;———————————————————————————————————&lt;/P&gt;

&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P align="left"&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;————————————————————————————————————&lt;/P&gt;

&lt;P&gt;# This is an example project to show and test the usage of the FindOpenCL&lt;/P&gt;

&lt;P&gt;# script.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;cmake_minimum_required( VERSION 2.6 )&lt;/P&gt;

&lt;P&gt;project( CL_Book )&lt;/P&gt;

&lt;P&gt;set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")&lt;/P&gt;

&lt;P&gt;find_package( OpenCL REQUIRED )&lt;/P&gt;

&lt;P&gt;include_directories( ${OPENCL_INCLUDE_DIRS} )&lt;/P&gt;

&lt;P&gt;include_directories( /opt/intel/opencl/include/ )&lt;STRONG&gt; #I added&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;include_directories( "${CMAKE_SOURCE_DIR}/khronos" )&lt;/P&gt;

&lt;P&gt;link_directories( /opt/intel/opencl-1.2-sdk-5.0.0.93/lib64 ) #&lt;STRONG&gt;I added&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;SUBDIRS(src)&lt;/P&gt;

&lt;P&gt;————————————————————————————————————&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Etc…&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;All of them don’t work…&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What should I do, could you give me some suggestions?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;（code please see atteched~↓)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 08:31:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094214#M4984</guid>
      <dc:creator>然_魏_</dc:creator>
      <dc:date>2015-12-03T08:31:52Z</dc:date>
    </item>
    <item>
      <title>I was able to build with the</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094215#M4985</link>
      <description>&lt;P&gt;I was able to build with the following options&lt;/P&gt;

&lt;P&gt;cmake -DOPENCL_INCLUDE_DIRS=/opt/intel/opencl/include -DOPENCL_LIBRARIES=/opt/intel/opencl/libOpenCL.so .&lt;/P&gt;

&lt;P&gt;make&lt;/P&gt;

&lt;P&gt;Note there are no spaces between -D and the variable it sets.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 22:57:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094215#M4985</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-12-03T22:57:33Z</dc:date>
    </item>
    <item>
      <title>Quote:Robert Ioffe (Intel)</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094216#M4986</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Robert Ioffe (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I was able to build with the following options&lt;/P&gt;

&lt;P&gt;cmake -DOPENCL_INCLUDE_DIRS=/opt/intel/opencl/include -DOPENCL_LIBRARIES=/opt/intel/opencl/libOpenCL.so .&lt;/P&gt;

&lt;P&gt;make&lt;/P&gt;

&lt;P&gt;Note there are no spaces between -D and the variable it sets.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Great! it works! I really appreciate your help.&lt;/P&gt;

&lt;P&gt;I think I should take cmake learning&amp;nbsp;seriously...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 08:06:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-example-program-HelloWorld-cpp-cmake-make-failed-CentOS-7/m-p/1094216#M4986</guid>
      <dc:creator>然_魏_</dc:creator>
      <dc:date>2015-12-09T08:06:51Z</dc:date>
    </item>
  </channel>
</rss>

