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

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

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.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

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

Thanks,
Boaz

Leave a Comment

Please sign in to add a comment. Not a member? Join today