Skip to content
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

What's the reason to pass primitive kernel args by reference? #691

Open
stgeke opened this issue Jun 9, 2023 · 0 comments
Open

What's the reason to pass primitive kernel args by reference? #691

stgeke opened this issue Jun 9, 2023 · 0 comments

Comments

@stgeke
Copy link
Contributor

stgeke commented Jun 9, 2023

It's quite error prone. Example: If the kernel argument is e.g. float one need to pass 0.f instead of simply 0. In other words the data type has to match exactly. It would be nice to pass primitive/scalar variables by value in order to benefit from implicit conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant