Skip to content

Commit

Permalink
Update to fix the addition of -g erroneously (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Di Natale committed May 26, 2021
1 parent 2d9ad58 commit 788561d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions maestrowf/interfaces/script/_flux/flux0_26_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ def parallelize(cls, procs, nodes=None, **kwargs):
args.append("-c")
args.append(str(kwargs["cores per task"]))

if "gpus" in kwargs:
ngpus = str(kwargs["gpus"])
ngpus = kwargs.get("gpus", 0)
if ngpus:
gpus = str(ngpus)
args.append("-g")
args.append(ngpus)
args.append(gpus)

# flux has additional arguments that can be passed via the '-o' flag.
addtl = []
Expand Down

0 comments on commit 788561d

Please sign in to comment.