From 4b491a7f1820aae42a176635635fa7ce214bdf7c Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Thu, 7 Mar 2013 09:53:31 -0800 Subject: Fixing a bug that was trashing the LD_LIBRARY_PATH if GPGPUSIM_ROOT was not the first entry in the list [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15422] --- setup_environment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup_environment') diff --git a/setup_environment b/setup_environment index c0f8b1f..cb39553 100644 --- a/setup_environment +++ b/setup_environment @@ -74,10 +74,10 @@ fi # against instead of the CUDA toolkit. This replaces this cumbersome # static link setup in prior GPGPU-Sim releases. if [ `uname` = "Darwin" ]; then - export DYLD_LIBRARY_PATH=`echo $DYLD_LIBRARY_PATH | sed -Ee 's/.*gpgpu_sim.*(release|debug)://'` + export DYLD_LIBRARY_PATH=`echo $DYLD_LIBRARY_PATH | sed -Ee 's#'$GPGPUSIM_ROOT'\/lib\/[0-9]+\/(debug|release):##'` export DYLD_LIBRARY_PATH=$GPGPUSIM_ROOT/lib/$GPGPUSIM_CONFIG:$DYLD_LIBRARY_PATH else - export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -re 's/.*gpgpu_sim.*(release|debug)://'` + export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -re 's#'$GPGPUSIM_ROOT'\/lib\/[0-9]+\/(debug|release):##'` export LD_LIBRARY_PATH=$GPGPUSIM_ROOT/lib/$GPGPUSIM_CONFIG:$LD_LIBRARY_PATH fi -- cgit v1.3