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

Allow using atomic types as launch args #328

Open
torsteingrindvik opened this issue Nov 29, 2024 · 2 comments
Open

Allow using atomic types as launch args #328

torsteingrindvik opened this issue Nov 29, 2024 · 2 comments

Comments

@torsteingrindvik
Copy link
Contributor

Currently if using atomics in kernels they need to be passed via some other type e.g. Array<_>.

It's often useful to put in an atomic temporarily for debugging purposes like counting branches in kernels.
That use case would have a better user experience if it's very convenient to add an atomic var as an arg without much hassle.

Therefore it would be nice to easily put in an atomic var directly.

Some context from discord chat starting here : https://discordapp.com/channels/1038839012602941528/1263876972837339196/1311989480491716699

@nathanielsimard
Copy link
Member

I think you can, but the atomic must be in an array or a tensor.

@torsteingrindvik
Copy link
Contributor Author

I think you can, but the atomic must be in an array or a tensor.

Yes (see the first line of the OP), my hopes were to be able to launch a single atomic without needing wrapper types around it.

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

2 participants