Hi,

Don't use the stack! :wink:
Please check my paper implementing the octree traversal in OpenCL and IL for AMD GPUs. http://dx.doi.org/10.1016/j.jocs.2011.01.006

I put the kernel code on...