Skip to content

Commit

Permalink
allow for 0 gpus in desktops
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jun 14, 2024
1 parent 1264b44 commit aedef49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions apps.awesim.org/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
end

def gpu_count
if !gpus.nil? && !gpus.empty? && gpus.to_i >= 0
gpus
else
1
end
gpus.to_s.to_i
end

slurm_args = case node_type
Expand Down
6 changes: 1 addition & 5 deletions ondemand.osc.edu/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
end

def gpu_count
if !gpus.nil? && !gpus.empty? && gpus.to_i >= 0
gpus
else
1
end
gpus.to_s.to_i
end

slurm_args = case node_type
Expand Down

0 comments on commit aedef49

Please sign in to comment.