Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 20, 2024
1 parent 4b06eb5 commit 5456506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion executorlib/interactive/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@


def validate_max_workers(max_workers: int, cores: int, threads_per_core: int):
cores_total = int(os.environ["SLURM_NTASKS"]) * int(os.environ["SLURM_CPUS_PER_TASK"])
cores_total = int(os.environ["SLURM_NTASKS"]) * int(
os.environ["SLURM_CPUS_PER_TASK"]
)
cores_requested = max_workers * cores * threads_per_core
if cores_total < cores_requested:
raise ValueError(
Expand Down

0 comments on commit 5456506

Please sign in to comment.