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

Verify "constness" of kernel args #689

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

Verify "constness" of kernel args #689

stgeke opened this issue Jun 9, 2023 · 0 comments
Labels
feature Use this label to request a new feature!

Comments

@stgeke
Copy link
Contributor

stgeke commented Jun 9, 2023

Example:

const auto a = device.malloc<dfloat>( );
myKernel(..., a);

@kernel void myKernel(..., float *a)
{
...
}
Currently it is not recognized that the kernel modifies a const memory object.
@kris-rowe kris-rowe added the feature Use this label to request a new feature! label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Use this label to request a new feature!
Projects
None yet
Development

No branches or pull requests

2 participants