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

allow pitzer desktop to choose # of GPUs #246

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading