Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust nsys --sample flag with --nsys-extra #618

Merged
merged 5 commits into from
Mar 24, 2023

Conversation

jjwilke
Copy link

@jjwilke jjwilke commented Mar 10, 2023

The current nsys flag only checks for -s to deduplicate. The user might pass any of the following:

  1. --sample <>
  2. --sample=<>
  3. -s <>
  4. -s=<>

The user will get a cryptic error about --sample being passed twice unless they use -s <>

@jjwilke jjwilke requested a review from bryevdv March 10, 2023 20:20
@jjwilke jjwilke added the category:bug-fix PR is a bug fix and will be classified as such in release notes label Mar 10, 2023
@jjwilke jjwilke requested a review from bryevdv March 17, 2023 16:25
@jjwilke
Copy link
Author

jjwilke commented Mar 17, 2023

@bryevdv PTAL. I added tests and made the checks more robust.

@jjwilke jjwilke requested a review from manopapad March 17, 2023 20:34

if nsys_parsed_args.targets:
raise RuntimeError(
"please pass targets as arguments to --nsys"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"please pass targets as arguments to --nsys"
"please pass targets through --nsys-targets"

@jjwilke jjwilke merged commit fc7ad7e into nv-legate:branch-23.05 Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug-fix PR is a bug fix and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants