Cl_device_max_work_item_sizes 0/0/0

Hi,
I’m using the sample Device Querey program from the jocl.org site (http://www.jocl.org/samples/JOCLDeviceQuery.java), and the output shows CL_DEVICE_MAX_WORK_ITEM_SIZES being equal to 0/0/0, whereas when I query the device in my own procedure, I get 1024/1024/64.

I thought you’d like to know.

Oliver

This is probably related to the array of ‘size_t’ type, which is not handled properly there. I’ll try to upload an updated version as soon as possible.
Thanks for this info!

Hello

I just uploaded a new sample. In fact, this wrong handling (and the solution) was already taken care of internally, but I had not yet updated the sample. I took the code for obtaining “sizes” from a “DeviceInfos” Utility class that I’m currently working on.
It would be great if you could confirm that it’s working, since I’ll not be able to test this on a 64bit machine in the next few days.

bye
Marco