Skip to content

Remove cli run-once and disable-blocking-kernel options#254

Merged
oleksandr-pavlyk merged 7 commits into
NVIDIA:mainfrom
oleksandr-pavlyk:remove-cli-run-once-and-disable-blocking-kernel-options
Jul 28, 2025
Merged

Remove cli run-once and disable-blocking-kernel options#254
oleksandr-pavlyk merged 7 commits into
NVIDIA:mainfrom
oleksandr-pavlyk:remove-cli-run-once-and-disable-blocking-kernel-options

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
Collaborator

Closes gh-253

Removes support for --run-once and --disable-blocking-kernel from nvbench::option_parser.

  • Removed nvbench::option_parser::enable_run_once() and nvbench::option_parser::disable_blocking_kernel().
  • Added nvbench::option_parser::enable_profile() that calls bench.set_run_once(true); and bench.disable_blocking_kernel(true);
  • Modified CLI-help text accordingly
  • Modified blocking-kernel timeout-message text to not suggest using now removed --disable-blocking-kernel option. The text already suggests using --profile command-line option.

Removed option_parser::disable_blocking_kernel and option_parse::set_run_once
methods. Added option_parser::enable_profile method instead, which calls

```
bench.set_run_once(true);
bench.disable_blocking_kernel(true);
```
The text printed when blocking kernel times out already suggests to
use --profile option.
Text for --profile modified to be self-consistent, i.e., not to refer
to removed --run-once and --disable-blocking-kernel for explanantion
of what it does.
@oleksandr-pavlyk oleksandr-pavlyk added the P1: should have Necessary, but not critical. label Jul 28, 2025
Comment thread nvbench/blocking_kernel.cu Outdated
Comment thread nvbench/option_parser.cu Outdated
Comment thread nvbench/option_parser.cu
Verify that `--profile` option results in setting `m_run_once`:

```
(nvbench) opavlyk@ee09c48-lcedt:~/repos/nvbench$ ./build/bin/nvbench.example.cpp20.axes -b simple -d 0 --profile | grep "Pass: Cold"
Pass: Cold: 1.006560ms GPU, 1.009277ms CPU, 0.00s total GPU, 0.00s total wall, 1x

(nvbench) opavlyk@ee09c48-lcedt:~/repos/nvbench$ ./build/bin/nvbench.example.cpp20.axes -b simple -d 0 | grep "Pass: Cold"
Pass: Cold: 1.002844ms GPU, 1.011917ms CPU, 0.50s total GPU, 0.52s total wall, 499x
```

@alliepiper alliepiper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with a small tweak to make the docs more user-friendly.

Comment thread docs/cli_help.md Outdated
Spare users of implementation details in description of `--profile` option

Co-authored-by: Allison Piper <apiper@nvidia.com>
@oleksandr-pavlyk oleksandr-pavlyk changed the title Remove cli run once and disable blocking kernel options Remove cli run-once and disable-blocking-kernel options Jul 28, 2025
@oleksandr-pavlyk
oleksandr-pavlyk merged commit a9fb32e into NVIDIA:main Jul 28, 2025
26 checks passed
@oleksandr-pavlyk
oleksandr-pavlyk deleted the remove-cli-run-once-and-disable-blocking-kernel-options branch July 28, 2025 20:10
@bdice bdice mentioned this pull request Aug 7, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1: should have Necessary, but not critical.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove "--run-once" and "--disable-blocking-kernel" CLI options

3 participants