summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2012-07-27 07:16:13 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:52 -0700
commit3050ec4515478aad6173bc93cf1735c6a1adc8af (patch)
treefdf98e50e578ecbb2f4f10db7196bb84bd159ede /setup_environment
parent08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 (diff)
Editing the version print code to allow setup_environment to be run from any directory
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13554]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup_environment b/setup_environment
index 7e9e4e8..c776fde 100644
--- a/setup_environment
+++ b/setup_environment
@@ -1,8 +1,9 @@
# see README before running this
export GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN=
+THIS_DIR="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )"
-GPGPUSIM_VERSION_STRING=`cat version | awk '/Version/ {print $8}'`
+GPGPUSIM_VERSION_STRING=`cat $THIS_DIR/version | awk '/Version/ {print $8}'`
echo "GPGPU-Sim version $GPGPUSIM_VERSION_STRING";
if [ ! -n "$CUDA_INSTALL_PATH" ]; then
@@ -28,7 +29,7 @@ else
export GPGPUSIM_CONFIG=release
fi
-export GPGPUSIM_ROOT="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )"
+export GPGPUSIM_ROOT=$THIS_DIR
export QTINC=/usr/include