AnsweredAssumed Answered

OpenCL simple program crash

Question asked by teopemuk on Mar 25, 2012
Latest reply on Mar 26, 2012 by teopemuk

I am trying to use openlc for numerical simulation(ode+pde) but the simplest kernel crashes.

It works fine when the number of steps is low but the following code crashes on my 5750. (sometimes the gpu driver recovers, sometimes i get bluescreen or freez) I tried 6490M and it requires even lesser steps for crash.

 

__kernel void ocl_test(__global const float *a, __global const float *b, __global float *c) {   

    int i = get_global_id(0);

    c[i] = 0.0;

     for (float j = 0; j < 10000000.0 * 5.0; j += 1.0) {

        c[i] += a[i] * j;

    }

  }

Outcomes