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

Deprecate command line arguments (other than --help) that are not prefixed with --kokkos* #5120

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Jun 16, 2022

Implementing what was decided at the developer meeting.

Warn when they are used but do not change the behavior.

}
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) ||
Copy link
Member Author

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...

@dalg24 dalg24 changed the title Deprecate command line arguments (other than --help) that are not prefixed by --kokkos* Deprecate command line arguments (other than --help) that are not prefixed with --kokkos* Jun 16, 2022
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

Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Not in that PR

@dalg24 dalg24 merged commit 8b8667b into kokkos:develop Jun 17, 2022
@dalg24 dalg24 deleted the warn_when_cmdlinearg_is_not_prefixed branch June 17, 2022 16:51
@ajpowelsnl ajpowelsnl mentioned this pull request Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants