-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mathieu Lobet
committed
Dec 20, 2024
1 parent
b93d845
commit 25bde59
Showing
3 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |