-
Notifications
You must be signed in to change notification settings - Fork 17
feat: pmix v2 #421
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
base: master
Are you sure you want to change the base?
feat: pmix v2 #421
Changes from all commits
96f5a2d
8da135b
fd188bc
ba078c9
39aebcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -68,6 +68,8 @@ const ( | |||||||||||||||||||||||||
| const ( | ||||||||||||||||||||||||||
| FlagIOForwardALL string = "all" | ||||||||||||||||||||||||||
| FlagIOForwardNONE string = "none" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| MpiTypePmix string = "pmix" | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| type GlobalVariables struct { | ||||||||||||||||||||||||||
|
|
@@ -1877,6 +1879,12 @@ func MainCrun(cmd *cobra.Command, args []string) error { | |||||||||||||||||||||||||
| log.Debugf("X11 forwarding enabled (%v:%d). ", target, port) | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| if FlagMpi != MpiTypePmix { | ||||||||||||||||||||||||||
| return util.NewCraneErr(util.ErrorCmdArg, fmt.Sprintf("Invalid argument: unsupported MPI type %s.", FlagMpi)) | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| iaMeta.Mpi = FlagMpi | ||||||||||||||||||||||||||
|
Comment on lines
+1882
to
+1886
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: default (no
Validate only when the user explicitly set the flag, e.g.: 🐛 Proposed fix- if FlagMpi != MpiTypePmix {
- return util.NewCraneErr(util.ErrorCmdArg, fmt.Sprintf("Invalid argument: unsupported MPI type %s.", FlagMpi))
- }
-
- iaMeta.Mpi = FlagMpi
+ if FlagMpi != "" {
+ if FlagMpi != MpiTypePmix {
+ return util.NewCraneErr(util.ErrorCmdArg,
+ fmt.Sprintf("Invalid argument: unsupported MPI type %q (supported: %s).", FlagMpi, MpiTypePmix))
+ }
+ iaMeta.Mpi = FlagMpi
+ }Alternatively, gate on 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| termEnv, exits := syscall.Getenv("TERM") | ||||||||||||||||||||||||||
| if exits { | ||||||||||||||||||||||||||
| iaMeta.TermEnv = termEnv | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.