Skip to content

Conversation

@MrBurmark
Copy link
Member

Summary

Add classes that can cache threadIdx, blockIdx, blockDim, and/or gridDim in cuda and hip and use then in the Index classes.

  • This PR is a feature
  • It does the following:
    • Adds cache-able idx/dim at the request of @artv3

Add classes that can cache threadIdx, blockIdx, blockDim,
and/or gridDim and use then in the Index classes.
@MrBurmark MrBurmark requested a review from artv3 December 19, 2025 20:05
@artv3
Copy link
Member

artv3 commented Dec 19, 2025

Hey this looks pretty cool and simpler than we were originally trying, let me try it within the RAJA PerfSuite and I can get back to you

using NonCachedIndicesAndDims = IndicesAndDims<false, false, false, false>;

// threadIdx and blockDim cached, rest not cached
using CachedThreadIndicesAndBlockDims =
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

3 participants