From 376d457602ca0216904b3598293007ee0426599a Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Sun, 29 Jul 2012 08:49:23 -0800 Subject: 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] --- setup_environment | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'setup_environment') 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 -- cgit v1.3