summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2013-03-07 09:53:31 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:05 -0700
commit4b491a7f1820aae42a176635635fa7ce214bdf7c (patch)
tree66378c5f7ae8506a072d94bdbb9a8d50aa88b455 /setup_environment
parentd8c39c7de2957efb10797e24b835306e295df7f2 (diff)
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]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment4
1 files changed, 2 insertions, 2 deletions
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