Commit ce82184e authored by Philip Carns's avatar Philip Carns

workaround library path problem

- need to find correct solution later; this is a hack
parent ffe82e8a
......@@ -20,6 +20,9 @@ get_remi_lib_path() {
module show `spack module tcl find remi` |&grep LIBRARY_PATH | awk '{print $3}'
}
get_thallium_lib_path() {
module show `spack module tcl find thallium` |&grep LIBRARY_PATH | awk '{print $3}'
}
module swap PrgEnv-intel PrgEnv-gnu
module load cce
......@@ -32,6 +35,7 @@ module list
# NOTE: as of Sept 2018, the rpath isn't being set correctly for Mercury libraries in the regression
# test programs. Not sure why. This hack manually adds the correct path to LD_LIBRARY_PATH.
# update: also happening in other packages that aren't using libtool
LIB_PATH_HACK=$(get_mercury_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
# ditto for pmdk apparently
......@@ -41,6 +45,9 @@ echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
LIB_PATH_HACK=$(get_remi_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
LIB_PATH_HACK=$(get_thallium_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
echo "## Bake OFI/GNI:"
rm -f /dev/shm/foo.dat
......
......@@ -20,6 +20,9 @@ get_remi_lib_path() {
module show `spack module tcl find remi` |&grep LIBRARY_PATH | awk '{print $3}'
}
get_thallium_lib_path() {
module show `spack module tcl find thallium` |&grep LIBRARY_PATH | awk '{print $3}'
}
module swap PrgEnv-intel PrgEnv-gnu
module load cce
......@@ -40,6 +43,9 @@ export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
LIB_PATH_HACK=$(get_remi_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
LIB_PATH_HACK=$(get_thallium_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
#ldd ./margo-p2p-latency
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment