OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

get_global_size returns undefined values when dimindx > get_work_dim()-1

sharpneli
Beginner
213 Views
When calling get_global_size with dimindx > get_work_dim()-1 it returns arbitrary values. The standard itself says of the get_global size that "For other values of dimindx, get_global_size() returns 1". So I presume this counts as a bug.

As a workaround we currently set the global work dimensions always as 3 for intel platform with unused dimension sizes as 1, however I'd prefer this would be a stopgap measure.

EDIT: It seems that the global id:s are correctly reported. The problem is only with the global sizes. Edited the post to reflect this.
0 Kudos
1 Reply
Boaz_O_Intel
Employee
213 Views

Hi,

We have captured this issue and will apply a fix to it.

Thanks,
Boaz

Reply