Skip to content

Commit

Permalink
Fix gpu (#245)
Browse files Browse the repository at this point in the history
* vis needs at least 1 gpu

* ascend can use MATE installed on the host
  • Loading branch information
johrstrom authored Jul 31, 2023
1 parent 7a2fd18 commit 4bf6c27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 30 deletions.
6 changes: 3 additions & 3 deletions apps.awesim.org/apps/bc_desktop/ascend.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ attributes:
]
- [
"vis", "vis",
data-min-gpus: 0,
data-max-gpus: 3,
data-min-gpus: 1,
data-max-gpus: 4,
data-min-num-cores: 1,
data-max-num-cores: 84,
data-max-num-cores: 88,
]
submit: submit/slurm.yml.erb
12 changes: 0 additions & 12 deletions apps.awesim.org/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@ batch_connect:

# reset SLURM_EXPORT_ENV so that things like srun & sbatch work out of the box
export SLURM_EXPORT_ENV=ALL
<%- if cluster == 'ascend' && desktop == 'mate' -%>
script_wrapper: |
cat << "CTRSCRIPT" > container.sh
module load turbovnc/2.2.7 novnc/1.3.0
%s
CTRSCRIPT

# your bindpath will differ
export APPTAINER_BINDPATH="/run,/apps,/tmp"

apptainer run --nv <%= image %> /bin/bash container.sh
<%- end -%>
script:
accounting_id: "<%= account %>"
native:
Expand Down
6 changes: 3 additions & 3 deletions ondemand.osc.edu/apps/bc_desktop/ascend.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ attributes:
]
- [
"vis", "vis",
data-min-gpus: 0,
data-max-gpus: 3,
data-min-gpus: 1,
data-max-gpus: 4,
data-min-num-cores: 1,
data-max-num-cores: 84,
data-max-num-cores: 88,
]
submit: submit/slurm.yml.erb
12 changes: 0 additions & 12 deletions ondemand.osc.edu/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@ batch_connect:

# reset SLURM_EXPORT_ENV so that things like srun & sbatch work out of the box
export SLURM_EXPORT_ENV=ALL
<%- if cluster == 'ascend' && desktop == 'mate' -%>
script_wrapper: |
cat << "CTRSCRIPT" > container.sh
module load turbovnc/2.2.7 novnc/1.3.0
%s
CTRSCRIPT

# your bindpath will differ
export APPTAINER_BINDPATH="/run,/apps,/tmp"

apptainer run --nv <%= image %> /bin/bash container.sh
<%- end -%>
script:
accounting_id: "<%= account %>"
native:
Expand Down

0 comments on commit 4bf6c27

Please sign in to comment.