Skip to content

Commit

Permalink
Bugfix: forgot config in cluster example
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalinmayor committed Jun 27, 2024
1 parent ae31f48 commit 4a83e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ def start_subprocess_worker(cluster="local"):
if cluster == "bsub":
# this is where you define your cluster arguments specific to your task (gpus, cpus, etc)
num_cpus_per_worker = 1
subprocess.run(["bsub", "-I", f"-n {num_cpus_per_worker}", "python", "./tutorial_worker.py"])
subprocess.run(["bsub", "-I", f"-n {num_cpus_per_worker}", "python", "./tutorial_worker.py", "tutorial_config.json"])
elif cluster== "local":
subprocess.run(["python", "./tutorial_worker.py"])
subprocess.run(["python", "./tutorial_worker.py", "tutorial_config.json"])
else:
raise ValueError("Only bsub and local currently supported for this tutorial")

Expand Down

0 comments on commit 4a83e89

Please sign in to comment.