[FEA] Support different index/stride types
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 127
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 11
Description
index_t is currently used for both index and stride computations, and users select which one they want at compile time. 64b stride/index is the default. In most cases users would never need a 64b index, and it's wasted instructions using them. Most CUDA libraries don't even support 64b indexes and only strides anyways, so it doesn't make sense to allow this.
This feature is to create a second type offset_t that is used for stride calculations only, and the user can select which they want to use.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing index_t definition, its compile-time selection, and all uses in index and stride calculations. Separate stride-only uses behind offset_t while preserving selectable index types, then verify that the library builds and its existing numerical tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- hpc
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100