summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2012-07-29 08:49:23 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:53 -0700
commit376d457602ca0216904b3598293007ee0426599a (patch)
tree4321e3fb0bb59f210bb997722617a9e5b870179f /setup_environment
parent01e9787999e8d74ac3e9a5e1988ef5275d0713ee (diff)
Setting the path earlier so nvcc is the right version when we fill in the build env vars.
This is useful if you are building one version of the sdk, change your CUDA_INSTALL_PATH then source setup_environment again. Now things will be properly setup for the latter SDK after your source [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13572]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment7
1 files changed, 3 insertions, 4 deletions
diff --git a/setup_environment b/setup_environment
index b59a4c1..7bcc48c 100644
--- a/setup_environment
+++ b/setup_environment
@@ -21,6 +21,9 @@ if [ ! `uname` = "Linux" -a ! `uname` = "Darwin" ]; then
return;
fi
+export PATH=`echo $PATH | sed "s#$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:##"`
+export PATH=$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH
+
# to run the debug build of GPGPU-Sim run:
# source setup_environment debug
CUDA_VERSION=`nvcc --version | grep release | sed -re 's/.*release ([0-9]+\.[0-9]+).*/\1/'`
@@ -31,8 +34,6 @@ else
export GPGPUSIM_CONFIG=$CUDA_VERSION/release
fi
-
-
export QTINC=/usr/include
# change NVOPENCL_LIBDIR to point to your opencl library directory, usually
@@ -59,8 +60,6 @@ else
export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -re 's/.*gpgpu_sim.*(release|debug)://'`
fi
export LD_LIBRARY_PATH=$GPGPUSIM_ROOT/lib/$GPGPUSIM_CONFIG:$LD_LIBRARY_PATH
-export PATH=`echo $PATH | sed "s#$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:##"`
-export PATH=$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH
NVCC_PATH=`which nvcc`;
if [ $? = 1 ]; then