PDA

View Full Version : Error enqueueing kernel



Rui
05-13-2010, 11:58 AM
Hello,

When I try to enqueue a kernel, I'm getting an error saying "access violation reading location 0xfdfdfdfd". I've put most of the OpenCL related stuff on a class (context creation, building, etc) and I'm trying to enqueue with:



err = gpuHandler->getCommandQueue()->enqueueNDRangeKernel(*gpuHandler->getMyKernel(), cl::NullRange, global, local);

What could I be doing wrong?

Thanks in advance!

Rui
05-13-2010, 12:29 PM
Never mind, keeping OpenCL stuff on a separate class is OK. Buffer creation was buggy.