Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenCL errors on long running tasks
    primarykey
    data
    text
    <p>I'm running a long-running kernel on a nVidia Quattro 6000 device. The kernel involves a loop with tens of thousands of iterations.</p> <p>When I ran the kernel, after 2 seconds the screen went black, Windows restarted GPU drivers and clFinish returned an error. So I got myself a second GPU card just for displaying and now the 2 seconds timeout does not apply.</p> <p>The kernel computed for 50 seconds and then there were these errors (lines prefixed by "GPU ERROR" are errors printed by clCreateContext error callback):</p> <pre><code>GPU ERROR: CL_OUT_OF_RESOURCES error executing clFinish on Quadro 6000 (Device 0). Computation finished, took 50 seconds (00:00:50) GPU ERROR: CL_OUT_OF_RESOURCES error waiting for idle on Quadro 6000 (Device 0). clFinish() returned CL_OUT_OF_RESOURCES GPU ERROR: CL_OUT_OF_RESOURCES error waiting for idle on Quadro 6000 (Device 0). </code></pre> <p>What can I do about it?</p> <p>For the sake of simplicity, this is a stripped down version of this kernel. In reality it performs integration over a curved surface, that's why I need a loop - but this simple version crashes too, for large enough n.</p> <pre><code>__kernel void integrate( __global float *input, __global float *output, unsigned int n, float c) { size_t kernel_idx = (get_global_id(1)*get_global_size(0) + get_global_id(0)); if(kernel_idx &lt; inputWidth*inputHeight*inputDepth) { int j; ... float sum = 0.0; for(j = 0; j &lt; n; j++) // y { sum += input[j]; } output[kernel_idx] = sum; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload