rsnt_translations
56,420
edits
(Created page with "2. Activez l'environnement virtuel du nœud principal. <syntaxhighlight lang="bash">source $SLURM_TMPDIR/env/bin/activate;</syntaxhighlight>") |
(Created page with "==== Exemple (plusieurs nœuds) ==== {{File |name=submit-nnodes-venv.sh |lang="bash" |lines=yes |contents= #!/bin/bash #SBATCH --account=<your account> #SBATCH --time=00:30:00 #SBATCH --nodes=2 #SBATCH --ntasks=2 #SBATCH --mem-per-cpu=2000M") |
||
Line 238: | Line 238: | ||
<syntaxhighlight lang="bash">source $SLURM_TMPDIR/env/bin/activate;</syntaxhighlight> | <syntaxhighlight lang="bash">source $SLURM_TMPDIR/env/bin/activate;</syntaxhighlight> | ||
3. | 3. Exécutez le script avec | ||
<syntaxhighlight lang="bash">srun python myscript.py;</syntaxhighlight> | <syntaxhighlight lang="bash">srun python myscript.py;</syntaxhighlight> | ||
==== | ==== Exemple (plusieurs nœuds) ==== | ||
{{File | {{File | ||
|name=submit-nnodes-venv.sh | |name=submit-nnodes-venv.sh |