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

Require multiple threads for Alpaka CCL code #644

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

stephenswat
Copy link
Member

The CCL code currently does not support running with a single thread per block; it has to be run with multiple threads per block by design. In order to require this, I have added a new function that asserts this about a device (note that in Alpaka 1.2.0 there is IsMultiThreadAcc, but we cannot use this yet). I have also added a static assertion for this.

@stephenswat stephenswat added bug Something isn't working alpaka Changes related to Alpaka labels Jul 17, 2024
@stephenswat stephenswat requested a review from StewMH July 17, 2024 09:32
@stephenswat stephenswat marked this pull request as draft July 17, 2024 09:32
@stephenswat
Copy link
Member Author

Depends on #643.

@stephenswat stephenswat marked this pull request as ready for review July 17, 2024 12:18
The CCL code currently does not support running with a single thread per
block; it has to be run with multiple threads per block by design. In
order to require this, I have added a new function that asserts this
about a device (note that in Alpaka 1.2.0 there is `IsMultiThreadAcc`,
but we cannot use this yet). I have also added a static assertion for
this.
@stephenswat
Copy link
Member Author

This is now ready to go; @CrossR or @StewMH could you take a look?

@StewMH
Copy link
Contributor

StewMH commented Jul 17, 2024

I think in principle you can achieve this more neatly using the IsMultiThreadAcc from here: alpaka-group/alpaka#2263
but this means updating our Alpaka version and there is no recent tag that contains it.

EDIT: I should have read the description more thoroughly, sorry.

Otherwise looks good to me at a glance but Ryan should also comment.

@CrossR
Copy link
Contributor

CrossR commented Jul 17, 2024

Also looks good to me!

@stephenswat stephenswat merged commit 3c3fa5a into acts-project:main Jul 17, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpaka Changes related to Alpaka bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants