First steps in openCL programming using GPU

Ressources we have:

clGetDeviceIDs returned 2 devices

Device 0

CL_DEVICE_NAME: Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz

CL_DEVICE_VENDOR: Intel

CL_DEVICE_VERSION: OpenCL 1.2

CL_DRIVER_VERSION: 1.1

CL_DEVICE_PROFILE: FULL_PROFILE

CL_DEVICE_AVAILABLE: 1

CL_DEVICE_COMPILER_AVAILABLE: 1

CL_DEVICE_GLOBAL_MEM_SIZE: 17179869184

CL_DEVICE_LOCAL_MEM_SIZE: 32768

CL_DEVICE_IMAGE_SUPPORT: 1

Device 1

CL_DEVICE_NAME: Intel(R) Iris(TM) Graphics 540

CL_DEVICE_VENDOR: Intel Inc.

CL_DEVICE_VERSION: OpenCL 1.2

CL_DRIVER_VERSION: 1.2(Mar 16 2017 22:07:32)

CL_DEVICE_PROFILE: FULL_PROFILE

CL_DEVICE_AVAILABLE: 1

CL_DEVICE_COMPILER_AVAILABLE: 1

CL_DEVICE_GLOBAL_MEM_SIZE: 1610612736

CL_DEVICE_LOCAL_MEM_SIZE: 65536

CL_DEVICE_IMAGE_SUPPORT: 1