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.
clEnqueueWriteImage segmentation fault
Labels: OpenCLPosted by MiGi at 8:26 PM
Subscribe to:
Post Comments (Atom)
Diseño e iconos por N.Design Studio | A Blogger por Blog and Web
2 comments:
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.
That's a good idea. Thank you for the suggestion!
Post a Comment