cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mz24cn
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 Likes
3 Replies

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

Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3600c16dgtzn kit, Aorus gen4 1tb, Nitro+RX6900XT, RM850, Win.10 Pro., LC27G55T..

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

0 Likes

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 Likes