Skip to content

Commit

Permalink
More Gricad with fluiddyn
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jul 23, 2024
1 parent ae63d94 commit 7f8da31
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 8 deletions.
7 changes: 4 additions & 3 deletions doc/examples/clusters/gricad/dev_print_oar_script.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from fluiddyn.clusters.ciment import DahuGuixDevel as Cluster

cluster = Cluster()
from fluiddyn.clusters.gricad import DahuGuixDevel as Cluster

cluster = Cluster(
options_guix_shell="-E ^OMPI -E ^OAR -E ^OMP -m manifest.scm -f python-fluidsim.scm"
)
# 2 full nodes
nb_nodes = 2
nb_mpi_processes = "auto"
Expand Down
16 changes: 16 additions & 0 deletions doc/examples/clusters/gricad/submit_bench_fluidfft.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from fluiddyn.clusters.gricad import DahuGuix16_6130 as Cluster

cluster = Cluster(
check_scheduler=False,
options_guix_shell="-E ^OMPI -E ^OAR -E ^OMP -m manifest.scm -f python-fluidsim.scm",
)

for nb_nodes in [1, 2, 4]:
cluster.submit_command(
command="--prefix $MPI_PREFIX \\\n fluidfft-bench 1024 -d 3",
name_run=f"bench_fluidfft_{nb_nodes}nodes",
nb_nodes=nb_nodes,
nb_mpi_processes="auto",
walltime="01:00:00",
project="pr-strat-turb",
)
13 changes: 8 additions & 5 deletions doc/examples/clusters/gricad/submit_bench_fluidsim.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
from fluiddyn.clusters.ciment import DahuGuixDevel as Cluster
from fluiddyn.clusters.gricad import DahuGuix16_6130 as Cluster

cluster = Cluster(check_scheduler=False)
cluster = Cluster(
check_scheduler=False,
options_guix_shell="-E ^OMPI -E ^OAR -E ^OMP -m manifest.scm -f python-fluidsim.scm",
)

cluster.submit_command(
command="--prefix $MPI_PREFIX \\\n fluidsim-bench 256 -d 3 -s ns3d -o .",
command="--prefix $MPI_PREFIX \\\n fluidsim-bench 1024 -d 3 -s ns3d -o .",
name_run="bench_fluidsim",
nb_nodes=1,
nb_mpi_processes=2,
nb_nodes=2,
nb_mpi_processes="auto",
walltime="00:30:00",
project="pr-strat-turb",
)
15 changes: 15 additions & 0 deletions doc/examples/clusters/gricad/submit_devel_bench_fluidsim.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from fluiddyn.clusters.gricad import DahuGuixDevel as Cluster

cluster = Cluster(
check_scheduler=False,
options_guix_shell="-E ^OMPI -E ^OAR -E ^OMP -m manifest.scm -f python-fluidsim.scm",
)

cluster.submit_command(
command="--prefix $MPI_PREFIX \\\n fluidsim-bench 256 -d 3 -s ns3d -o .",
name_run="bench_fluidsim",
nb_nodes=1,
nb_mpi_processes=2,
walltime="00:30:00",
project="pr-strat-turb",
)

0 comments on commit 7f8da31

Please sign in to comment.