Using GPUs with Slurm/fr: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 129: Line 129:
GPU id will be calculated by slot id {%} minus 1. {#} is the job id, starting from 1.
GPU id will be calculated by slot id {%} minus 1. {#} is the job id, starting from 1.


<div class="mw-translate-fuzzy">
Le fichier params.input devrait contenir les paramètres sur des lignes distinctes, comme suit&nbsp;:
A params.input file should include input parameters in each line like:
<pre>
<pre>
code1.py
code1.py
Line 139: Line 138:
</pre>
</pre>
With this method, users can run multiple codes in one submission. In this case, GNU Parallel will run a maximum of 4 jobs at a time. It will launch the next job when one job is finished. CUDA_VISIBLE_DEVICES is used to force using only 1 GPU for each code.
With this method, users can run multiple codes in one submission. In this case, GNU Parallel will run a maximum of 4 jobs at a time. It will launch the next job when one job is finished. CUDA_VISIBLE_DEVICES is used to force using only 1 GPU for each code.
</div>
rsnt_translations
56,563

edits