Skip to content

Commit

Permalink
chore: Add expconf slurm.gpu_type [FOUNDENG-338] (#5448)
Browse files Browse the repository at this point in the history
Add configuation to enable Determined EE support for slurm.gpu_type.
  • Loading branch information
jerryharrow authored Nov 17, 2022
1 parent c7d6923 commit 781e754
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions harness/determined/common/schemas/expconf/_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,13 @@
"minimum": 1,
"default": null
},
"gpu_type": {
"type": [
"string",
"null"
],
"default": null
},
"sbatch_args": {
"type": [
"array",
Expand Down
1 change: 1 addition & 0 deletions master/pkg/schemas/expconf/experiment_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func (l *LabelsV0) UnmarshalJSON(data []byte) error {
// SlurmConfigV0 configures experiment resource usage.
type SlurmConfigV0 struct {
RawSlotsPerNode *int `json:"slots_per_node,omitempty"`
RawGpuType *string `json:"gpu_type,omitempty"`
RawSbatchArgs []string `json:"sbatch_args,omitempty"`
}

Expand Down
8 changes: 8 additions & 0 deletions master/pkg/schemas/expconf/zgen_slurm_config_v0.go

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

7 changes: 7 additions & 0 deletions master/pkg/schemas/zgen_schemas.go

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

7 changes: 7 additions & 0 deletions schemas/expconf/v0/hpc-cluster-slurm.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"minimum": 1,
"default": null
},
"gpu_type": {
"type": [
"string",
"null"
],
"default": null
},
"sbatch_args": {
"type": [
"array",
Expand Down

0 comments on commit 781e754

Please sign in to comment.