File tree 6 files changed +135
-0
lines changed
doc/examples/clusters/gricad_miniforge
6 files changed +135
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Install fluidsim with Miniforge on Dahu
2
+
3
+ We show in this directory
4
+ (< https://foss.heptapod.net/fluiddyn/fluidsim/-/tree/branch/default/doc/examples/clusters/gricad_miniforge > )
5
+ how to use Fluidsim with Miniforge on Gricad clusters. The main documentation
6
+ for this HPC platform is [ here] ( https://gricad-doc.univ-grenoble-alpes.fr/hpc/ ) .
7
+
8
+ ## Install Miniforge
9
+
10
+ ``` sh
11
+ wget " https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$( uname) -$( uname -m) .sh"
12
+ bash Miniforge3-$( uname) -$( uname -m) .sh -b
13
+ $HOME /miniforge3/bin/conda init
14
+ . .bashrc
15
+ conda config --set auto_activate_base false
16
+ ```
17
+
18
+ ## Install Fluidsim in a conda env
19
+
20
+ ``` sh
21
+ conda env create --file https://foss.heptapod.net/fluiddyn/fluidsim/-/raw/branch/default/doc/examples/clusters/gricad_miniforge/env-fluidsim-mpi.yml
22
+ ```
23
+
24
+ ## Submit jobs
25
+
26
+ ``` sh
27
+ ./submit_bench_fluidfft.py
28
+ ./submit_bench_fluidsim.py
29
+ ```
30
+
31
+ For the devel script ` submit_devel_bench_fluidsim.py ` , one needs to be connected
32
+ to a devel login node (` ssh dahu-oar3 ` ).
33
+
34
+ ``` sh
35
+ ./submit_devel_bench_fluidsim.py
36
+ ```
Original file line number Diff line number Diff line change
1
+ name : env-fluidsim-mpi
2
+ dependencies :
3
+ - fluidsim
4
+ - openmpi
5
+ - h5py=*=mpi*
6
+ - fluidfft-fftw
7
+ - fluidfft-fftwmpi
8
+ - fluidfft-mpi_with_fftw
9
+ - ipython
10
+ - matplotlib
Original file line number Diff line number Diff line change
1
+ from pathlib import Path
2
+
3
+ from fluiddyn .clusters .oar import ClusterOAR
4
+
5
+
6
+ path_miniforge = Path .home () / "miniforge3"
7
+
8
+
9
+ class Dahu (ClusterOAR ):
10
+ name_cluster = "dahu"
11
+ has_to_add_name_cluster = False
12
+ frontends = ["dahu" , "dahu-oar3" ]
13
+ use_oar_envsh = False
14
+
15
+ commands_setting_env = [
16
+ "source /etc/profile" ,
17
+ f"source { path_miniforge / 'etc/profile.d/conda.sh' } " ,
18
+ "conda activate env-fluidsim-mpi" ,
19
+ ]
20
+
21
+
22
+ class DahuDevel (Dahu ):
23
+ devel = True
24
+ frontends = ["dahu-oar3" ]
25
+
26
+
27
+ class Dahu16_6130 (Dahu ):
28
+ nb_cores_per_node = 16
29
+ resource_conditions = "cpumodel='Gold 6130' and n_cores=16"
30
+
31
+
32
+ class Dahu32_6130 (Dahu ):
33
+ nb_cores_per_node = 32
34
+ resource_conditions = "cpumodel='Gold 6130' and n_cores=32"
35
+
36
+
37
+ class Dahu24_6126 (Dahu ):
38
+ nb_cores_per_node = 24
39
+ resource_conditions = "cpumodel='Gold 6126' and n_cores=24"
40
+
41
+
42
+ class Dahu32_5218 (Dahu ):
43
+ nb_cores_per_node = 32
44
+ resource_conditions = "cpumodel='Gold 5218' and n_cores=32"
45
+
46
+
47
+ class Dahu16_6244 (Dahu ):
48
+ nb_cores_per_node = 16
49
+ resource_conditions = "cpumodel='Gold 6244' and n_cores=16"
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ from gricad_simple import Dahu32_6130 as Cluster
3
+
4
+ cluster = Cluster ()
5
+
6
+ for nb_nodes in [1 ]:
7
+ cluster .submit_command (
8
+ command = "fluidfft-bench 1024 -d 3" ,
9
+ name_run = f"bench_fluidfft_{ nb_nodes } nodes" ,
10
+ nb_nodes = nb_nodes ,
11
+ nb_mpi_processes = "auto" ,
12
+ walltime = "01:00:00" ,
13
+ project = "pr-strat-turb" ,
14
+ )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ from gricad_simple import Dahu32_6130 as Cluster
3
+
4
+ cluster = Cluster ()
5
+
6
+ cluster .submit_command (
7
+ command = "fluidsim-bench 1024 -d 3 -s ns3d -o ." ,
8
+ name_run = "bench_fluidsim" ,
9
+ nb_nodes = 1 ,
10
+ nb_mpi_processes = "auto" ,
11
+ walltime = "00:30:00" ,
12
+ project = "pr-strat-turb" ,
13
+ )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ from gricad_simple import DahuDevel as Cluster
3
+
4
+ cluster = Cluster ()
5
+
6
+ cluster .submit_command (
7
+ command = "fluidsim-bench 256 -d 3 -s ns3d -o ." ,
8
+ name_run = "bench_fluidsim" ,
9
+ nb_nodes = 1 ,
10
+ nb_mpi_processes = 2 ,
11
+ walltime = "00:30:00" ,
12
+ project = "pr-strat-turb" ,
13
+ )
You can’t perform that action at this time.
0 commit comments