Skip to content

Commit

Permalink
allow pitzer desktop to choose # of GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Sep 28, 2023
1 parent 4bf6c27 commit 4ed67ee
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
15 changes: 14 additions & 1 deletion apps.awesim.org/apps/bc_desktop/pitzer.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ attributes:
min: 1
max: 48
step: 1
gpus: ""
gpus:
widget: number_field
min: 0
max: 4
licenses:
help: |
Licenses are comma separeated in the format '\<name\>@osc:\<# of licenses\>' like
Expand Down Expand Up @@ -91,50 +94,60 @@ attributes:
"any", "any",
data-min-cores: 1,
data-max-cores: 80,
data-set-gpus: 0,
]
- [
"40 core", "any-40core",
data-min-cores: 1,
data-max-cores: 40,
data-set-gpus: 0,
]
- [
"48 core", "any-48core",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 0,
]
- [
"any gpu", "gpu-any",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 1,
]
- [
"40 core with gpu", "gpu-40core",
data-min-cores: 1,
data-max-cores: 40,
data-set-gpus: 1,
]
- [
"48 core with gpu", "gpu-48core",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 1,
]
- [
"densegpu", "densegpu",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 4,
]
- [
"visualization node", "vis",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 1,
]
- [
"largemem", "largemem",
data-min-cores: 24,
data-max-cores: 48,
data-set-gpus: 0,
]
- [
"hugemem", "hugemem",
data-min-cores: 20,
data-max-cores: 80,
data-set-gpus: 0,
]
submit: submit/slurm.yml.erb
2 changes: 1 addition & 1 deletion apps.awesim.org/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
end

def gpu_count
if !gpus.nil? && !gpus.empty?
if !gpus.nil? && !gpus.empty? && gpus.to_i.positive?
gpus
else
1
Expand Down
15 changes: 14 additions & 1 deletion ondemand.osc.edu/apps/bc_desktop/pitzer.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ attributes:
min: 1
max: 48
step: 1
gpus: ""
gpus:
widget: number_field
min: 0
max: 4
licenses:
help: |
Licenses are comma separeated in the format '\<name\>@osc:\<# of licenses\>' like
Expand Down Expand Up @@ -91,50 +94,60 @@ attributes:
"any", "any",
data-min-cores: 1,
data-max-cores: 80,
data-set-gpus: 0,
]
- [
"40 core", "any-40core",
data-min-cores: 1,
data-max-cores: 40,
data-set-gpus: 0,
]
- [
"48 core", "any-48core",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 0,
]
- [
"any gpu", "gpu-any",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 1,
]
- [
"40 core with gpu", "gpu-40core",
data-min-cores: 1,
data-max-cores: 40,
data-set-gpus: 1,
]
- [
"48 core with gpu", "gpu-48core",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 1,
]
- [
"densegpu", "densegpu",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 4,
]
- [
"visualization node", "vis",
data-min-cores: 1,
data-max-cores: 48,
data-set-gpus: 1,
]
- [
"largemem", "largemem",
data-min-cores: 24,
data-max-cores: 48,
data-set-gpus: 0,
]
- [
"hugemem", "hugemem",
data-min-cores: 20,
data-max-cores: 80,
data-set-gpus: 0,
]
submit: submit/slurm.yml.erb
2 changes: 1 addition & 1 deletion ondemand.osc.edu/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
end

def gpu_count
if !gpus.nil? && !gpus.empty?
if !gpus.nil? && !gpus.empty? && gpus.to_i.positive?
gpus
else
1
Expand Down

0 comments on commit 4ed67ee

Please sign in to comment.