Python/fr: Difference between revisions

Jump to navigation Jump to search
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"
(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. Use <tt>srun</tt> to run your script
3. Exécutez le script avec
<syntaxhighlight lang="bash">srun python myscript.py;</syntaxhighlight>
<syntaxhighlight lang="bash">srun python myscript.py;</syntaxhighlight>


==== Example (multi-nodes) ====
==== Exemple (plusieurs nœuds) ====
{{File
{{File
   |name=submit-nnodes-venv.sh
   |name=submit-nnodes-venv.sh
rsnt_translations
56,420

edits

Navigation menu