From 08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 26 Jul 2012 17:36:56 -0800 Subject: 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] --- setup_environment | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'setup_environment') 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 -- cgit v1.3