Skip to content

Commit

Permalink
examples/clusters/gricad/job_fluidfft_bench.oar
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jul 15, 2024
1 parent 7cedf39 commit 34b331e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/examples/clusters/gricad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,15 @@ python3 -m venv ~/venv-fluidsim-guix --system-site-packages
. ~/venv-fluidsim-guix/bin/activate
cd ~/dev/fluidsim
pip install -e lib
pip install -e ".[test]" -v --config-settings=setup-args=-Dnative=true
pip install -e ".[test]" -v --config-settings=setup-args=-Dnative=true --no-build-isolation
```

## Test Fluidsim in sequential

```sh
python -m pytest --pyargs fluidsim
source /applis/site/guix-start.sh
guix shell -m ~/dev/fluidsim/doc/examples/clusters/gricad/manifest.scm
. ~/venv-fluidsim-guix/bin/activate
cd ~/dev/fluidsim
python -m pytest fluidsim
```
26 changes: 26 additions & 0 deletions doc/examples/clusters/gricad/job_fluidfft_bench.oar
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
#OAR -n bench_fluidfft
#OAR --stdout fluidfft.out
#OAR --stderr fluidfft.err
#OAR -t devel
#OAR -l /nodes=1/core=2,walltime=00:30:00
#OAR --project pr-strat-turb

# load guix session
source /applis/site/guix-start.sh

export OMPI_MCA_plm_rsh_agent=/usr/bin/oarsh
export OMPI_MCA_btl_openib_allow_ib=true
export OMPI_MCA_pml=cm
export OMPI_MCA_mtl=psm2

ENV="`guix shell -m manifest.scm -- /bin/sh -c 'echo $GUIX_ENVIRONMENT'`"

cat $OAR_FILE_NODES > ./machinefile

exec ~/.config/guix/current/bin/guix shell -E ^OMPI -E ^OAR -E ^OMP \
-m manifest.scm \
-- mpirun -np `cat machinefile | wc -l` \
--machinefile machinefile \
--prefix $ENV \
fluidfft-bench 256 -d 3

0 comments on commit 34b331e

Please sign in to comment.