-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected behaviour of nd_item get_global_id(x) where x>NDims #551
Comments
As a point of context, OpenCL returns
|
Pinging @hdelan for their interest in the issue. |
That seems a little surprising. Presumably, providing a guarantee that |
The WG has some concerns about mandating that
|
What is the expected behaviour of
nd_item::get_global_id(x)
wherex
is greater than the number of dimensions templating thend_item
.e.g.
What should
it.get_global_id(1)
andit.get_global_id(2)
return in this case? The spec only states in thend_item
member description ofsize_t get_global_id(int dimension) const
:I see a few potential options to remedy the spec with:
0
Ideally, IMO, returning
0
would be preferable since it is precisely defined and does not affect the execution of the kernel.The text was updated successfully, but these errors were encountered: