11-15-2009, 03:16 AM
Hi, newbie question here. I have started playing around with OpenCL. The application I'm thinking of would run an OpenCL kernel which will perform a possibly long computation that depends on user input. I want to give the user the option of aborting the computation if it takes too long (theoretically it could become stuck in an infinite loop, for example). However, in the OpenCL specification I see no documented way of killing an OpenCL kernel that is currently running, only the clFinish function call which just waits for the kernel to finish. Am I missing something here? Is it possible to do this? If not, why not, and is this something that might be added in the future?