55
66# Script to set up the environment for tests on this platform. Must export
77# the following environment variables:
8- #
8+ #
99# DARSHAN_CC: command to compile C programs
1010# DARSHAN_CXX: command to compile C++ programs
1111# DARSHAN_F90: command to compile Fortran90 programs
1818
1919# Notes specific to this platform (workstation-ld-preload)
2020# #######################
21- # This particular env script assumes that mpicc and its variants for other
21+ # This particular env script assumes that mpicc and its variants for other
2222# languages are already in the path, and that they will produce dynamic
2323# executables by default. Test programs are compiled using the existing
2424# scripts, and LD_PRELOAD is set to enable instrumentation.
@@ -29,13 +29,8 @@ export DARSHAN_CC=mpicc
2929export DARSHAN_CXX=mpicxx
3030export DARSHAN_F77=mpif77
3131export DARSHAN_F90=mpif90
32- FULL_MPICC_PATH=` which mpicc`
3332
34- # This is a hack. In order to instrument Fortran programs with LD_PRELOAD,
35- # we must prepend libfmpich.so to the LD_PRELOAD variable, but with a fully
36- # resolve path. To find a path we locate mpicc and speculate that
37- # libfmich.so can be found in ../lib.
38- export LD_PRELOAD=` dirname $FULL_MPICC_PATH ` /../lib/libfmpich.so:$DARSHAN_RUNTIME_PATH /lib/libdarshan.so:$LD_PRELOAD
33+ export LD_PRELOAD=$DARSHAN_RUNTIME_PATH /lib/libdarshan.so:$LD_PRELOAD
3934
4035export DARSHAN_RUNJOB=" mpiexec -n $DARSHAN_DEFAULT_NPROCS "
4136
0 commit comments