Skip to content

Commit

Permalink
Support GPUs in Singularity runtime too
Browse files Browse the repository at this point in the history
  • Loading branch information
mruffalo committed Aug 27, 2021
1 parent d29e578 commit 4277d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cwltool/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ def create_runtime(
"--ipc",
"--cleanenv",
]
if getattr(self, 'docker_gpu_flag', False):
runtime.append('--nv')
if _singularity_supports_userns():
runtime.append("--userns")
else:
Expand Down

0 comments on commit 4277d62

Please sign in to comment.