Skip to content

Commit 2e098e7

Browse files
committed
workstation-ld-preload/env.sh - remove hack of adding libfmpich.so
1 parent ef9024f commit 2e098e7

File tree

1 file changed

+3
-8
lines changed
  • darshan-test/regression/workstation-ld-preload

1 file changed

+3
-8
lines changed

darshan-test/regression/workstation-ld-preload/env.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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
@@ -18,7 +18,7 @@
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
2929
export DARSHAN_CXX=mpicxx
3030
export DARSHAN_F77=mpif77
3131
export 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

4035
export DARSHAN_RUNJOB="mpiexec -n $DARSHAN_DEFAULT_NPROCS"
4136

0 commit comments

Comments
 (0)