Skip to content

Commit

Permalink
Added user mpirun hostfile slots to NnfDataMovement
Browse files Browse the repository at this point in the history
Signed-off-by: Blake Devcich <[email protected]>
  • Loading branch information
bdevcich committed Sep 8, 2023
1 parent 5877923 commit 72914a9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
8 changes: 8 additions & 0 deletions api/v1alpha1/nnf_datamovement_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ type NnfDataMovementConfig struct {
// Note: Enabling this option may degrade performance.
// +kubebuilder:default:=false
StoreStdout bool `json:"storeStdout,omitempty"`

// The number of slots specified in the MPI hostfile. A value of 0 disables the use of slots in
// the hostfile. -1 will defer to the value specific in the nnf-dm-config ConfigMap.
Slots *int `json:"slots,omitempty"`

// The number of max_slots specified in the MPI hostfile. A value of 0 disables the use of slots
// in the hostfile. -1 will defer to the value specific in the nnf-dm-config ConfigMap.
MaxSlots *int `json:"maxSlots,omitempty"`
}

// DataMovementCommandStatus defines the observed status of the underlying data movement
Expand Down
12 changes: 11 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions config/crd/bases/nnf.cray.hpe.com_nnfdatamovements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ spec:
the output is always logged. Note: Enabling this option may
degrade performance.'
type: boolean
maxSlots:
description: The number of max_slots specified in the MPI hostfile.
A value of 0 disables the use of slots in the hostfile. -1 will
defer to the value specific in the nnf-dm-config ConfigMap.
type: integer
slots:
description: The number of slots specified in the MPI hostfile.
A value of 0 disables the use of slots in the hostfile. -1 will
defer to the value specific in the nnf-dm-config ConfigMap.
type: integer
storeStdout:
default: false
description: 'Similar to LogStdout, store the command''s stdout
Expand Down

0 comments on commit 72914a9

Please sign in to comment.