summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed ElTantawy <[email protected]>2015-03-05 12:41:31 -0800
committerAhmed ElTantawy <[email protected]>2015-03-05 12:41:31 -0800
commit66d5ba0e9143b1bd6b839643bbffff6fb7db4aa6 (patch)
tree2c84a5d804af57604530bc71e05c961a6cda098a
parent18e0b0614611edcb19ee0a3b315c7b45e50b5595 (diff)
update setup_environment to reflect the levels of support of CUDA versions
-rw-r--r--setup_environment7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup_environment b/setup_environment
index 839da60..c55d71f 100644
--- a/setup_environment
+++ b/setup_environment
@@ -43,8 +43,11 @@ CC_VERSION=`gcc --version | head -1 | awk '{for(i=1;i<=NF;i++){ if(match($i,/^[0
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 4020 -o $CUDA_VERSION_NUMBER -lt 2030 ]; then
- echo "WARNING ** GPGPU-Sim version $GPGPUSIM_VERSION_STRING not tested with CUDA version $CUDA_VERSION_STRING (please see README)";
+if [ $CUDA_VERSION_NUMBER -gt 6000 -o $CUDA_VERSION_NUMBER -lt 2030 ]; then
+ echo "ERROR ** GPGPU-Sim version $GPGPUSIM_VERSION_STRING not tested with CUDA version $CUDA_VERSION_STRING (please see README)";
+ return
+elif [ $CUDA_VERSION_NUMBER -gt 4020 ]; then
+ echo "WARNING ** GPGPU-Sim version $GPGPUSIM_VERSION_STRING not fully tested with CUDA version $CUDA_VERSION_STRING (please see README)";
fi
if [ $# = '1' ] ;