Using GPUs with Slurm/fr: Difference between revisions

no edit summary
(Created page with "Pour un GPU demandé, nous recommandons * sur Béluga, un maximum de 10 cœurs CPU; * sur Cedar, ** un maximum de 6 cœurs CPU par GPU de type P100 (p100 et p100l) ** un maxim...")
No edit summary
Line 135: Line 135:
* sur Graham, un maximum de 16 cœurs CPU
* sur Graham, un maximum de 16 cœurs CPU


<div class="mw-translate-fuzzy">
== Tâches MPI ==
== Tâches MPI ==
{{File
{{File
Line 143: Line 142:
#!/bin/bash
#!/bin/bash
#SBATCH --account=def-someuser
#SBATCH --account=def-someuser
#SBATCH --gres=gpu:4              # Number of GPUs per node
#SBATCH --gpus=8                  # total number of GPUs
#SBATCH --nodes=2                # Number of nodes
#SBATCH --ntasks-per-gpu=1        # total of 8 MPI processes
#SBATCH --ntasks=48              # Number of MPI process
#SBATCH --cpus-per-task=6         # CPU cores per MPI process
#SBATCH --cpus-per-task=1         # CPU cores per MPI process
#SBATCH --mem-per-cpu=5G          # host memory per CPU core
#SBATCH --mem=120G                # memory per node
#SBATCH --time=0-03:00            # time (DD-HH:MM)
#SBATCH --time=0-03:00            # time (DD-HH:MM)
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
srun ./program
srun ./program
}}
}}
</div>


== Nœuds entiers  ==
== Nœuds entiers  ==
rsnt_translations
56,437

edits