summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2012-07-26 17:36:56 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:52 -0700
commit08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 (patch)
treedc6fc99131fd83fccf545978412682d1bcd348ba /setup_environment
parent9a0e4e4a776a963c9950dc3dcd0d23ee0739b755 (diff)
tell new user what version of GPGPU-Sim this is while trying to build (i.e., in case they can't even get it to build)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13549]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment12
1 files changed, 8 insertions, 4 deletions
diff --git a/setup_environment b/setup_environment
index d28e154..7e9e4e8 100644
--- a/setup_environment
+++ b/setup_environment
@@ -2,6 +2,9 @@
export GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN=
+GPGPUSIM_VERSION_STRING=`cat version | awk '/Version/ {print $8}'`
+echo "GPGPU-Sim version $GPGPUSIM_VERSION_STRING";
+
if [ ! -n "$CUDA_INSTALL_PATH" ]; then
echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH.";
return;
@@ -11,9 +14,9 @@ if [ ! -d "$CUDA_INSTALL_PATH" ]; then
return;
fi
-# for MacOS X
-if [ `uname` = "Darwin" ]; then
- echo "Detected MacOS X platform..."
+if [ ! `uname` = "Linux" ]; then
+ echo "ERROR ** Unsupported platform: GPGPU-Sim $GPGPUSIM_VERSION_STRING developed and tested on Linux."
+ return;
fi
# to run the debug build of GPGPU-Sim run:
@@ -69,7 +72,6 @@ fi
CUDA_VERSION_STRING=`$CUDA_INSTALL_PATH/bin/nvcc --version | awk '/release/ {print $5;}' | sed 's/,//'`;
CUDA_VERSION_NUMBER=`echo $CUDA_VERSION_STRING | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($1), 10*$2);}'`
if [ $CUDA_VERSION_NUMBER -gt 4000 -o $CUDA_VERSION_NUMBER -lt 2030 ]; then
- GPGPUSIM_VERSION_STRING=`cat version | awk '/Version/ {print $8}'`
echo "ERROR ** GPGPU-Sim version $GPGPUSIM_VERSION_STRING not tested with CUDA version $CUDA_VERSION_STRING (please see README)";
return;
fi
@@ -92,4 +94,6 @@ if [ "x$HOSTNAME_F" == "x$OPENCL_REMOTE_GPU_HOST" ]; then
unset OPENCL_REMOTE_GPU_HOST
fi
+echo "setup_environment succeeded";
+
export GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN=1