Repository navigation
Use cp_async_bulk(space_shared,...) when available - #6362
Merged
Merged
Conversation
cp_async_bulk(space_shared,...) when available
elstehle
approved these changes
Oct 28, 2025
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
space_shaerd
branch
from
October 30, 2025 11:50
bcc5d28 to
b1ae110
Compare
This comment has been minimized.
This comment has been minimized.
fbusato
reviewed
Oct 30, 2025
miscco
reviewed
Oct 30, 2025
bernhardmgruber
force-pushed
the
space_shaerd
branch
2 times, most recently
from
October 30, 2025 21:11
830344c to
86607b7
Compare
fbusato
reviewed
Oct 30, 2025
| && ::cuda::device::is_address_from(__src, ::cuda::device::address_space::global)) { | ||
| ::cuda::ptx::cp_async_bulk( | ||
| ::cuda::ptx::space_cluster, | ||
| ::cuda::std::conditional_t<__cccl_ptx_isa >= 860, ::cuda::ptx::space_shared, ::cuda::ptx::space_cluster>, |
Contributor
There was a problem hiding this comment.
would not be better to use a global constexpr variable?
Contributor
Author
There was a problem hiding this comment.
I think the small duplication is fine for the two occurences here. Also, I would not know where to put the global variable except for a new header and I feel that's overkill for this small branch.
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
space_shaerd
branch
from
November 1, 2025 22:13
86607b7 to
9b72daf
Compare
This comment has been minimized.
This comment has been minimized.
miscco
approved these changes
Nov 3, 2025
Comment on lines
+795
to
+799
| #if __cccl_ptx_isa >= 860 | ||
| ::cuda::ptx::space_shared, | ||
| #else // __cccl_ptx_isa >= 860 | ||
| ::cuda::ptx::space_cluster, | ||
| #endif // __cccl_ptx_isa >= 860 |
Contributor
There was a problem hiding this comment.
Nitpick: those two should also use the conditional_t
Contributor
Author
There was a problem hiding this comment.
I considered and thought that the preprocessor might compile faster. But I don't mind. Chaning to conditional_t.
bernhardmgruber
force-pushed
the
space_shaerd
branch
from
November 3, 2025 07:28
9b72daf to
4f16a9a
Compare
bernhardmgruber
enabled auto-merge (squash)
November 3, 2025 08:29
Contributor
🥳 CI Workflow Results🟩 Finished in 4h 31m: Pass: 100%/134 | Total: 4d 14h | Max: 4h 05m | Hits: 89%/267149See results here. |
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this pull request
Jan 7, 2026
bernhardmgruber
added a commit
that referenced
this pull request
Jan 9, 2026
1 task done
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #6302