We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b06eb5 commit 5456506Copy full SHA for 5456506
executorlib/interactive/slurm.py
@@ -7,7 +7,9 @@
7
8
9
def validate_max_workers(max_workers: int, cores: int, threads_per_core: int):
10
- cores_total = int(os.environ["SLURM_NTASKS"]) * int(os.environ["SLURM_CPUS_PER_TASK"])
+ cores_total = int(os.environ["SLURM_NTASKS"]) * int(
11
+ os.environ["SLURM_CPUS_PER_TASK"]
12
+ )
13
cores_requested = max_workers * cores * threads_per_core
14
if cores_total < cores_requested:
15
raise ValueError(
0 commit comments