Deprecated "clCreateCommandQueue" avoids Profiling

Hello,

clCreateCommandQueue function in my host code is deprecated and it is included from “CL/cl.h” which apparently ignore the CL_QUEUE_PROFILING_ENABLE flag in the host code. I would appreciate a solution.

My device and driver information :

latfrom: Intel Gen OCL Driver
Device: Intel® HD Graphics Haswell Ultrabook GT2 Mobile
Parallel Compute Units : 20
OpenCL C version: OpenCL C 1.2 beignet 1.1.1

Regards,
Jimbo

May you please have a look at my issue and let me know what do you think!!!

Do you have any idea about the problem!!!

regards,
Jimbo

Hi, mehdijimbo

clCreateCommandQueue function in my host code is deprecated and it is included from “CL/cl.h”

You should use maco

#define CL_USE_DEPRECATED_OPENCL_1_2_APIS

which apparently ignore the CL_QUEUE_PROFILING_ENABLE flag in the host code. I would appreciate a solution.

clCreateCommandQueue has depricated since OpenCL 2.0, so you can use it for OpenCL 1.x devices. If it doesn’t work on Intel GPU, please ask about it on https://software.intel.com/en-us/forums/opencl

For example: clCreateCommandQueue with CL_QUEUE_PROFILING_ENABLE is working well on AMD R7 240(OpenCL 1.2 Full Profile), nVidia 610 (OpenCL 1.1 Full Profile)

OpenCL C version: OpenCL C 1.2 beignet 1.1.1

The “Beignet” open source OpenCL implementation was never conformant and has been replaced by the newer “NEO” implementation:

https://github.com/intel/compute-runtime

It supports GPUs starting with the 5th generation core processors (“Broadwell”).

For your slightly older Haswell GPU you may be able to find a closed-source release that will work here:

https://software.intel.com/en-us/articles/legacy-opencl-drivers

The CPU OpenCL runtime may be an option that will work for you, too.