-
Notifications
You must be signed in to change notification settings - Fork 407
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
Deprecate command line arguments (other than --help
) that are not prefixed with --kokkos*
#5120
Deprecate command line arguments (other than --help
) that are not prefixed with --kokkos*
#5120
Conversation
} | ||
if (check_arg(arg[iarg], "--kokkos-ndevices")) { | ||
warn_deprecated_command_line_argument("--kokkos-ndevices", | ||
"--kokkos-num-devices"); | ||
} | ||
// Find the number of device (expecting --device=XX) | ||
if (!((strncmp(arg[iarg], "--kokkos-num-devices=", 21) == 0) || | ||
(strncmp(arg[iarg], "--num-ndevices=", 14) == 0) || | ||
(strncmp(arg[iarg], "--num-devices=", 14) == 0) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was a bug and essentially never worked...
--help
) that are not prefixed by --kokkos*
--help
) that are not prefixed with --kokkos*
kokkos-tool as command-line arguments. E.g. | ||
`<EXE> --kokkos-tools-args="-c input.txt"` will | ||
pass `<EXE> -c input.txt` as argc/argv to tool | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to also print the env vars we process? I do not know any other program that does this, but might be worth a thought when concerning user friendlyness ... having one place that shows runtime config options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in that PR
Implementing what was decided at the developer meeting.
Warn when they are used but do not change the behavior.