Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed Jun 8, 2023
1 parent 4e11642 commit 45c2189
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pyiron_base/jobs/job/extension/server/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@ class Server: # add the option to return the job id and the hold id to the serv
"""

def __init__(
self, host=None, queue=None, cores=1, threads=1, gpus=None, run_mode="modal", new_hdf=True
self,
host=None,
queue=None,
cores=1,
threads=1,
gpus=None,
run_mode="modal",
new_hdf=True,
):
self._cores = cores
self._threads = threads
Expand Down
2 changes: 1 addition & 1 deletion pyiron_base/jobs/job/runfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def run_job_with_status_created(job):
run_job_with_runmode_srun(job=job)
elif job.server.run_mode.flux:
if job.server.gpus is not None:
gpus_per_slot = int(job.server.gpus/job.server.cores)
gpus_per_slot = int(job.server.gpus / job.server.cores)
else:
gpus_per_slot = None
return run_job_with_runmode_flux(
Expand Down

0 comments on commit 45c2189

Please sign in to comment.