darshan-f.conf.in 797 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash

# Example Darshan profiling configuration file for MPICH.


DARSHAN_PREFIX=@prefix@
7
MPICH_LIB_OLD=@MPICH_LIB_OLD@
8 9

# Libraries (and paths) to include before the MPI library 
10 11 12 13 14
if [ $MPICH_LIB_OLD -eq 1 ]; then
    export PROFILE_PRELIB="-lfmpich `$DARSHAN_PREFIX/bin/darshan-config --pre-ld-flags`"
else
    export PROFILE_PRELIB="-lmpifort `$DARSHAN_PREFIX/bin/darshan-config --pre-ld-flags`"
fi
15 16 17 18 19 20 21 22 23

# Libraries to include after the MPI library 
export PROFILE_POSTLIB=`$DARSHAN_PREFIX/bin/darshan-config --post-ld-flags`

# C preprocessor arguments for any include files For example, to add
# /usr/local/myprof/include to the include path and the library libmyprof.a in
# /usr/local/myprof/lib to the link step, you could create the file myprof.conf with the
# lines 
# PROFILE_INCPATHS