cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

Highlighted
Adept II
Adept II

How to debug (OpenCL2.0 device side) enqueue_kernel reports CL_OUT_OF_RESOURCES?

GPU: Hawaii (R9 295x2)

Code simply like this:

kernel void fit(global const float* a, global const float* b, float c, float d)

{

queue_t default_queue = get_default_queue();

enqueue_kernel(default_queue, CLK_ENQUEUE_FLAGS_WAIT_KERNEL, ndrange_1D(1),

^{

  kernel2(a, b, c, d);

});

}

kernel2(...){...}

The program exits as:

Error in clEnqueueNDRangeKernel (-5): CL_OUT_OF_RESOURCES

Note I runs only for ndrange_1D(1), I don't know why out of resources. If enquene kernel2 from host side (parameters a-d are same), no problem.

How to debug this issue?

0 Kudos
Reply
3 Replies
Highlighted
Big Boss
Big Boss

Re: How to debug (OpenCL2.0 device side) enqueue_kernel reports CL_OUT_OF_RESOURCES?

You may want to try the Devgurus​ forum for that.

Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3200c16d kit, Aorus nvme gen4 1tb,
Highlighted
Adept II
Adept II

Re: How to debug (OpenCL2.0 device side) enqueue_kernel reports CL_OUT_OF_RESOURCES?

thank you, I moved to OpenCL. In this forum I found some familar face such as dipak​, hello?

0 Kudos
Reply
Highlighted
Staff
Staff

Re: How to debug (OpenCL2.0 device side) enqueue_kernel reports CL_OUT_OF_RESOURCES?

Hi Mike,

It would be difficult to get more information on this kind of run-time errors. Also, kernel debugging (CodeXL) is not supported at this moment for OpenCL 2.0 kernels. If you can share a repro (please mention the setup details also), we could take a look and forward it to concerned team, if needed.

.

Regards,

0 Kudos
Reply