resubmit 0.0.5__py3-none-any.whl → 0.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- resubmit/__submit.py +3 -7
- {resubmit-0.0.5.dist-info → resubmit-0.0.6.dist-info}/METADATA +1 -1
- resubmit-0.0.6.dist-info/RECORD +9 -0
- resubmit-0.0.5.dist-info/RECORD +0 -9
- {resubmit-0.0.5.dist-info → resubmit-0.0.6.dist-info}/WHEEL +0 -0
- {resubmit-0.0.5.dist-info → resubmit-0.0.6.dist-info}/licenses/LICENSE +0 -0
- {resubmit-0.0.5.dist-info → resubmit-0.0.6.dist-info}/top_level.txt +0 -0
resubmit/__submit.py
CHANGED
|
@@ -15,6 +15,7 @@ def _submit_jobs(
|
|
|
15
15
|
block: bool,
|
|
16
16
|
prompt: bool,
|
|
17
17
|
local_run: bool,
|
|
18
|
+
job_name: Optional[str] = "resubmit",
|
|
18
19
|
slurm_additional_parameters: Optional[Dict] = None,
|
|
19
20
|
):
|
|
20
21
|
"""Submit jobs described by `jobs_args` where each entry is a dict of kwargs for `func`.
|
|
@@ -48,18 +49,13 @@ def _submit_jobs(
|
|
|
48
49
|
print("submitting jobs")
|
|
49
50
|
executor = submitit.AutoExecutor(folder=folder)
|
|
50
51
|
|
|
51
|
-
# default slurm params (keep cluster-specific options out unless explicitly set)
|
|
52
|
-
if slurm_additional_parameters is None:
|
|
53
|
-
slurm_additional_parameters = {"gpus": num_gpus}
|
|
54
|
-
else:
|
|
55
|
-
slurm_additional_parameters = dict(slurm_additional_parameters)
|
|
56
|
-
slurm_additional_parameters.setdefault("gpus", num_gpus)
|
|
57
|
-
|
|
58
52
|
print("Slurm additional parameters:", slurm_additional_parameters)
|
|
59
53
|
|
|
60
54
|
executor.update_parameters(
|
|
55
|
+
name=job_name,
|
|
61
56
|
timeout_min=timeout_min,
|
|
62
57
|
cpus_per_task=cpus_per_task,
|
|
58
|
+
gpus_per_node=num_gpus,
|
|
63
59
|
mem_gb=mem_gb,
|
|
64
60
|
slurm_additional_parameters=slurm_additional_parameters,
|
|
65
61
|
)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
resubmit/__bookkeeping.py,sha256=VX2cCD82nibVM4Tf7peeqylyUXRVwH7ZWLGj1CcfzRU,7219
|
|
2
|
+
resubmit/__debug.py,sha256=8RINyz7eSAiT47d018wR0R3B_u4PllQJCiLy0zTSQDE,887
|
|
3
|
+
resubmit/__init__.py,sha256=FLKq6KZeI973gBXzdnSkvK1aEdxF--5V2T82fxyzv0U,219
|
|
4
|
+
resubmit/__submit.py,sha256=SgtZFb-Yi7zIv9BGVyXgbsjca_s6_kZlA9mBO9ZWGtg,2149
|
|
5
|
+
resubmit-0.0.6.dist-info/licenses/LICENSE,sha256=v2spsd7N1pKFFh2G8wGP_45iwe5S0DYiJzG4im8Rupc,1066
|
|
6
|
+
resubmit-0.0.6.dist-info/METADATA,sha256=nYs7CVd-qHcAAYdxFQ85LR_g-HMCwSZ49J66HfO2PLY,2976
|
|
7
|
+
resubmit-0.0.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
resubmit-0.0.6.dist-info/top_level.txt,sha256=BfCexfX-VhUZuNi8sI88i0HF_e3ppausQ76hxPeXjYc,9
|
|
9
|
+
resubmit-0.0.6.dist-info/RECORD,,
|
resubmit-0.0.5.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
resubmit/__bookkeeping.py,sha256=VX2cCD82nibVM4Tf7peeqylyUXRVwH7ZWLGj1CcfzRU,7219
|
|
2
|
-
resubmit/__debug.py,sha256=8RINyz7eSAiT47d018wR0R3B_u4PllQJCiLy0zTSQDE,887
|
|
3
|
-
resubmit/__init__.py,sha256=FLKq6KZeI973gBXzdnSkvK1aEdxF--5V2T82fxyzv0U,219
|
|
4
|
-
resubmit/__submit.py,sha256=17XhT9e7_p-svBIODlUjKv8r9aryb0tdH3sCFKlJ5g0,2386
|
|
5
|
-
resubmit-0.0.5.dist-info/licenses/LICENSE,sha256=v2spsd7N1pKFFh2G8wGP_45iwe5S0DYiJzG4im8Rupc,1066
|
|
6
|
-
resubmit-0.0.5.dist-info/METADATA,sha256=tJyMalMf59bo41uiZnu0YfdVmj7Ms2J1VwffXM94qes,2976
|
|
7
|
-
resubmit-0.0.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
-
resubmit-0.0.5.dist-info/top_level.txt,sha256=BfCexfX-VhUZuNi8sI88i0HF_e3ppausQ76hxPeXjYc,9
|
|
9
|
-
resubmit-0.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|