# -----------------------------------------------
# Cray settings to enable outout when debugging libfabric problems
# -----------------------------------------------
export UGNI_DEBUG=10
export FI_LOG_LEVEL=debug
export FI_LOG_PROV=gni

# -----------------------------------------------
# Laptop - run mpi ranks in separate consoles, attach gdb and run immediately
# -----------------------------------------------
mpiexec -n 2 --oversubscribe konsole -e gdb -ex run --args /home/biddisco/build/ghex/tests/transport/test_send_recv_libfabric

# -----------------------------------------------
# Build on LUMI
# -----------------------------------------------
cmake -DCMAKE_BUILD_TYPE=Release -DOOMPH_WITH_LIBFABRIC=ON -DOOMPH_LIBFABRIC_PROVIDER=cxi -DLIBFABRIC_ROOT=/opt/cray/libfabric/1.15.0.0/ -DOOMPH_WITH_BENCHMARKS=ON -DOOMPH_BENCHMARKS_MT=ON -DOOMPH_WITH_TESTING=ON /users/jobiddis/src/ghex/extern/oomph/
