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%8 ... ta_methods if you are not familiar with runge kutta
but that is not important. the point is, one of the expressions is this one:
where "result", "pos", "k1", "k2" and "k3" are all vectors defined as this:
my code compiles, but has a runtime error, code -5 CL_OUT_OF_RESOURCES at this line.
i'm guessing that i may use up all the registers of the gpu?
i tried to replace that line with simpler equations, the code can run. but if i use the original equation, the code doesn't run.
i don't know how i can solve this problem. and i don't know what the problem is?