Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Lobet committed Dec 20, 2024
1 parent b93d845 commit 25bde59
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 16 deletions.
22 changes: 22 additions & 0 deletions exercices/performance/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Exercice : Etude de passage à l'échelle

Pour cet exerice, nous allons étudier le passage à l'échelle d'un code parallèle en utilisant le supercalculateur Ruche de l'Université Paris-Saclay. Nous réutilisons le code qui effectue une intégration numérique par la méthode des rectangles.

## Consignes

### Passage à l'échelle faible

1. Réalisez une étude de passage à l'échelle faible en utilisant 1, 2, 4, 8, 16 et 20 coeurs pour une discrétisation de 320000000 de mailles pour 1 coeur. Pour vous aidez vous pouvez utiliser le script `weak.slurm` fourni.

2.

### Passage à l'échelle fort

1.


**Warning**: n'oubliez pas de charger l'environnement Python avant d'exécuter le code.

```bash
source /gpfs/workdir/labotm/Installations/miniforges3/m2dfe_env.sh
```
18 changes: 10 additions & 8 deletions exercices/performance/strong.slurm
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#!/bin/bash
#SBATCH --job-name=master_dfe
#SBATCH --output=output
#SBATCH --error=error # fichier qui réceptionne la sortie standard
#SBATCH --output=output_strong
#SBATCH --error=error_strong # fichier qui réceptionne la sortie standard
#SBATCH --ntasks=40 # Nombre d'unité de calcul ou de processus MPI
#SBATCH --nodes=1
#SBATCH --exclusive
#SBATCH --time=00:10:00 # Temps souhaité pour la réservation
#SBATCH --partition=cpu_short # Partition des jobs rapides

source /gpfs/workdir/labotm/Installations/miniforges3/m2dfe_env.sh
mpirun -np 1 python3 main.py -N 32000000
mpirun -np 2 python3 main.py -N 32000000
mpirun -np 4 python3 main.py -N 32000000
mpirun -np 8 python3 main.py -N 32000000
mpirun -np 16 python3 main.py -N 32000000
mpirun -np 20 python3 main.py -N 32000000
mpirun -np 1 python3 main.py -N 320000000
mpirun -np 2 python3 main.py -N 320000000
mpirun -np 4 python3 main.py -N 320000000
mpirun -np 8 python3 main.py -N 320000000
mpirun -np 16 python3 main.py -N 320000000
mpirun -np 20 python3 main.py -N 320000000
mpirun -np 32 python3 main.py -N 320000000
mpirun -np 40 python3 main.py -N 320000000
18 changes: 10 additions & 8 deletions exercices/performance/weak.slurm
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#!/bin/bash
#SBATCH --job-name=master_dfe
#SBATCH --output=output
#SBATCH --error=error # fichier qui réceptionne la sortie standard
#SBATCH --output=output_weak
#SBATCH --error=error_weak # fichier qui réceptionne la sortie standard
#SBATCH --ntasks=40 # Nombre d'unité de calcul ou de processus MPI
#SBATCH --nodes=1
#SBATCH --exclusive
#SBATCH --time=00:10:00 # Temps souhaité pour la réservation
#SBATCH --partition=cpu_short # Partition des jobs rapides

source /gpfs/workdir/labotm/Installations/miniforges3/m2dfe_env.sh
mpirun -np 1 python3 main.py -N 32000000
mpirun -np 2 python3 main.py -N 64000000
mpirun -np 4 python3 main.py -N 128000000
mpirun -np 8 python3 main.py -N 256000000
mpirun -np 16 python3 main.py -N 512000000
mpirun -np 20 python3 main.py -N 640000000
mpirun -np 1 python3 main.py -N 320000000
mpirun -np 2 python3 main.py -N 640000000
mpirun -np 4 python3 main.py -N 1280000000
mpirun -np 8 python3 main.py -N 2560000000
mpirun -np 16 python3 main.py -N 5120000000
mpirun -np 20 python3 main.py -N 6400000000
mpirun -np 32 python3 main.py -N 10240000000
mpirun -np 40 python3 main.py -N 12800000000

0 comments on commit 25bde59

Please # to comment.