Skip to content

Add support for int32 parameter axes #436

Description

@tgujar

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions