After installing "SDK for OpenCL Applications Package" and "Driver and library(runtime) packages" into my CentOS 7 according to the page
I am testing the driver and SDK.
Actually, I could run a sample "CapsBasic.cpp" obtained at
However, the following output shows that GPU is NOT used but CPU is used:
Number of available platforms: 1
 Intel(R) OpenCL [Selected]
Number of devices available for each type:
*** Detailed information for each device ***
CL_DEVICE_NAME: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
CL_DEVICE_VENDOR: Intel(R) Corporation
CL_DEVICE_VERSION: OpenCL 2.0 (Build 330)
CL_DEVICE_OPENCL_C_VERSION: OpenCL C 2.0
CL_DEVICE_EXTENSIONS: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer
How can I enable the GPU, i.e. Intel HD 5600? What I would like to do is to program my Intel HD5600 (as well as CPU cores) with OpenCL. I do not care about the version of the OpenCL; even 1.2 is okay.
The details of my computer is shown as follows:
% grep -m1 name /proc/cpuinfo
model name : Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
The above processor is included in the 5th generation Core arch.
% uname -a
Linux localhost.localdomain 4.7.0.intel.r3.1 #1 SMP Sat Dec 3 23:30:56 JST 2016 x86_64 x86_64 x86_64 GNU/Linux
The above kernel was created according to the installation instruction linked at "OpenCL™ 2.0 GPU/CPU driver package for Linux* (64-bit)" in the page OpenCL™ Drivers and Runtimes for Intel® Architecture | Intel® Software. I note that, to recognize the kernel by the boot loader (grub), it was necessary to set "Legacy Boot" instead of "Secure Boot" in the BIOS setup.
Let me know if any other information is necessary.
Message was edited by: Toru Takahashi I have fixed some typos and alignments.