hello guys,

i’m trying to put my runge kutta integration code on the gpu with opencl. here is an introduction of the algorithm http://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods if you are not familiar with runge kutta

but that is not important. the point is, one of the expressions is this one:

result.x=pos.x +(k1.x+k2.x*2.0f+k3.x*3.0f+k4.x)*(1.0f/6.0f);

where “result”, “pos”, “k1”, “k2” and “k3” are all vectors defined as this:

typedef struct

{

float x;

float y;

float z;

} Vector;

my code compiles, but has a runtime error, code -5 CL_OUT_OF_RESOURCES at this line.

i don’t know how i can solve this problem. and i don’t know what the problem is?

thanks