-
Notifications
You must be signed in to change notification settings - Fork 552
Use kDim instead of dim to avoid name collision #2802
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
Conversation
…implementation in kernels.
umar456
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for debugging this and submitting the changes. Could you please rename the variable to kDim instead of _af_dim. I want to avoid making a variable name starting with an underscore which is usually reserved for system headers and compilers. Otherwise this looks good although this is will most likely break in the future because this is a bug that is only a problem in one platform. I think it would be better to to have some sort of assert in the header which will cause this to fail in any platform. I guess we can handle that in another PR.
|
I have renamed to kDim which looks like working on Mesa AMD Clover |
| options << " -D To=" << dtype_traits<To>::getName() | ||
| << " -D Ti=" << dtype_traits<Ti>::getName() | ||
| << " -D dim=" << dim; | ||
| << " -D kDim=" << dim; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
join.cl OpenCL kernel doesn't use this one at all. I wonder why it's being passed to this at all.
* Use kDim instead of dim to avoid name collision with some OpenCL implementations(AMD) in kernels. Co-authored-by: LAVAUX Guilhem <lavaux@iap.fr>
* Use kDim instead of dim to avoid name collision with some OpenCL implementations(AMD) in kernels. Co-authored-by: LAVAUX Guilhem <lavaux@iap.fr>
This is related to #2800