Update section on DLB

This commit is contained in:
Jose Gracia 2024-01-08 16:31:50 +01:00
parent db7d4fc153
commit 5b262a0120

View file

@ -158,6 +158,8 @@ Consider doing not just one run, but several to get a feeling for the variation
## Optional: Installing DLB
TALP is a tool which determines some of the POP metrics online while the application is running; no traces are generated. TALP is a part of the library DLB.
Activate your Spack environment as [explained above](#Activating%20Spack%20environment), then load your module environment as usual.
Add the latest Spack recipe for DLB with
@ -180,7 +182,25 @@ __MPI=$LMOD_FAMILY_MPI@$LMOD_FAMILY_MPI_VERSION
spack install --add dlb@3.3.1%gcc ^${__MPI}%${__COMPILER}
```
TODO: use DLB
You need to modify your jobscripts to attach TALP/DLB to your executable. Add something like this to your jobscript
```bash
# activate Spack environment
export PROJECT_ID=465000533 # put your own here
export SPACK_USER_PREFIX=/project/project_${PROJECT_ID}/spack_ChEESE
module load spack/23.03-2
eval $(spack env activate --sh $SPACK_USER_PREFIX/cheese_env)
# setup your modules, etc
# module load ...
# load and configure mpiP
eval $(spack load --sh dlb)
export DLB_ARGS="--talp --talp-summary=pop-metrics"
TRACE="env LD_PRELOAD=libdlb_mpi.so"
# add $TRACE before you application executable
srun ... ${TRACE} ./appl ...
```
## Optional: Fixing Modulefiles