NVIDIA / NVIDIA/nvbench

Add support for int32 parameter axes

Open
#436 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.