This is probably a noob question, as I'm new to opencl programming. I'm currently using the ruby bindings and it's working great so far. I'm writing an ifs fractal generator and having some problems with it. I'm using a geforce 9400 gt to run the calculations and it's also shared with X on a fedora 10 box. The program runs fine for about 10 to 12 times, then I start to get enqueueing errors, -5 CL_OUT_OF_RESOURCES. X then starts having problems and random pixels on my display start dropping out. Moving a window is a cool effect because it just sort of dissolves. X crashes and I have to reboot.
I was thinking that the problem was either the card overheating, which doesn't appear to be the case because I can let the card sit for awhile and the errors are still there. Or I'm filling the card up with my queued events. Would using clReleaseCommandQueue help my problem? I think my biggest problem is that I have been spoiled by ruby which takes care of all these issues, and it's been a while since I have programmed in C.