Add support for int32 parameter axes
Nobody has claimed this yet.
- Dominant language
- Cuda
- Stars
- 927
- Forks
- 123
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 2
Description
NVBench integer axes return int64 values. Projects using 32-bit size types must repeatedly check that an axis value fits before casting it.
Could NVBench provide a checked int32 accessor, for example:
auto value = state.get_int32("num_rows");
The axis can remain int64 internally. The accessor should return an int32 value when it fits and report an error when it does not. This would also safely handle values supplied through command-line axis overrides.
Contributor guide
No contributing guide indexed for this repository
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 with the existing state integer-axis accessors and the command-line axis override path described in the issue. Add the proposed state.get_int32("num_rows") entry point so fitting int64 values return int32 values and out-of-range values report an error. Done means both direct axis values and command-line overrides are checked safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api, performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100