summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorandrewboktor <[email protected]>2015-03-05 13:18:54 -0800
committerandrewboktor <[email protected]>2015-03-05 13:18:54 -0800
commit4dc9d53085b568aea0cefe75d599f87bb5e0841f (patch)
treeb9eb3212e2b7730771103d86336a72b2963a5796 /setup_environment
parentd46bf67b50b265dd3afae7c9a6a13c4cbdd6176f (diff)
parent66d5ba0e9143b1bd6b839643bbffff6fb7db4aa6 (diff)
Merge pull request #9 from ElTantawy/master
initial support for CUDA 5.0, 5.5, 6.0 to get template from SDK running
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup_environment b/setup_environment
index f1a63f2..c55d71f 100644
--- a/setup_environment
+++ b/setup_environment
@@ -43,9 +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
+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;
+ 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' ] ;