clEnqueueWriteImage segmentation fault

I got segmentation fault at clEnqueueWriteImage, but could not find any mistake in the arguments.
Eventually I tried just writing range {1,1,1} but still got error. Thus it was obviously that something other caused the segmentation fault, and it was clCreateImage!

I created a large image (1024x1024x1024) with format UNORM_INT8 of RGBA. I still don't know why this size exceeded the limit, and why nVidia's OpenCL library didn't return error when I called clCreateImage.
In the end I used this size 512x512x512 and it worked fine. Strange thing +1.

2 comments:

Anonymous said...

did you register callback function while creating context. That might give more information. I tracked few bugs with this. Even if there is no error retrun there could be something wrong.

MiGi said...

That's a good idea. Thank you for the suggestion!