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.
1674 Discussions

device queue Intel Iris Xe Graphics

Andreas4
Beginner
131 Views

Hello,

I writing opencl program where i use "enqueue_kernel" command. this command need as parameter device queue.

 

 

if i call :

cl_command_queue_properties properties = {CL_QUEUE_PROPERTIES, CL_QUEUE_ON_DEVICE | CL_QUEUE_ON_DEVICE_DEFAULT, CL_QUEUE_SIZE, 20000,0};

cl_queue_properties queue_properties[] = {
CL_QUEUE_PROPERTIES, properties, 0 };
wsp_p->queue = clCreateCommandQueueWithProperties (wsp_p->opencl->ctx, wsp_p->opencl->device,queue_properties, &err);

queue are created , and some kernels(without enqueue_kernel() call) are executed.

but if i call

clSetKernelArg (ocl_prog->kernel, 3, sizeof(cl_command_queue),
&ocl_data->queue);

it return -70 (invalid device queue).

It seems, that always host side command queue are created

I read the number of max device queues via :

err = clGetDeviceInfo (ocldev.device, CL_DEVICE_MAX_ON_DEVICE_QUEUES,
sizeof(cl_uint), &c,
&ret_param_size);

 

but the result is 0.

I am wondering , because the opencl spec says :

CL_​DEVICE_​MAX_​ON_​DEVICE_​QUEUES :

The maximum number of device queues that can be created for this device in a single context.

The minimum value is 1.

attached is the log of clinfo.

 

any idea ?

best regards

Andreas

 

 

 

 

Labels (1)
0 Kudos
1 Reply
Andreas4
Beginner
128 Views

I wrote this to wrong forum. I added it to the GPU forum.

Reply