Commit 53ac8b0
authored
fix: allow unsetting of tasks for gpu jobs (#318)
this PR should fix #316 - python's process management seems to interfere
with SLURM tasks under unknown circumstances. Unsetting the tasks per
gpu might be a solution.
If a user defined `tasks` <= 0, the `--ntasks-per-gpu` flag is not
issued.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added support for a new resource key to control the number of tasks
per GPU in SLURM job submissions.
* **Bug Fixes**
* Improved handling of SLURM `--ntasks-per-gpu` and `--ntasks` options,
allowing greater flexibility and correct omission when appropriate.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 6d7c50a commit 53ac8b0
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
0 commit comments