Image2D OpenCL & Snow Leopard

Hello,

I have a problem with an OpenCL code that runs correctly on Windows XP and 7 on different graphic cards (GF 8400GS, GF 9500GT, GTX285, GTX 470, Quadro 4000).

But with Snow Leopard on a mac mini (9400m) the code doesn’t work and we get the following errors:

  1. After a clEnqueueReadBuffer -> CL_INVALID_COMMAND_QUEUE

  2. When we try to use clCreateImage2D with the following image format configuration

cl_image_format image_format;

image_format.image_channel_order = CL_INTESITY;

image_format.image_channel_data_type = CL_FLOAT;

we get the error : CL_IMAGE_FORMAT_NOT_SUPPORTED.

Is there a problem with OsX SL and OpenCL?

I try to install the latest cuda 4 driver and it changes nothing;

Thanks for your help.

Not all image formats are mandatory for an OpenCL implementation. Does clGetSupportedImageFormats() return that format?

I didn’t know this function. I will try it.

Thanks a lot.

OpenCL implementation in osX snow loepard seems to not support our image format.

Unfortunately no format supported can answer to our problem.

That’s a bad news

Any idea for the first problem? Is a bad kernel execution can corrupt the command queue and return CL_INVALID_COMMAND_QUEUE when we use it after?

Thanks a lot.

I’ve no idea. Do other operations on the same queue succeed?

It seems that a bad kernel execution corrupt the command queue and there is no other solution than create a new command queue.