summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorbftf <[email protected]>2019-11-11 12:29:15 -0800
committerbftf <[email protected]>2019-11-11 12:55:02 -0800
commit555cce395bb8457a209b26f6f7ff62cc09839fdf (patch)
treeaf7022e7396572b04589036494a82794e866c7bb /setup_environment
parentd10ff4bf1fab969cabb69febb895ead4b377a778 (diff)
Enabled CUDA 10. Added implementations for __cudaPushCallConfiguration and __cudaPopCallConfiguration, neither of which are documented in the CUDA API but they preceed any cudaLaunchKernel() call and push the call configuration on a stack which is then popped when cudaLaunchKernel() is called. Currently the max stack size is 1, an assert will be triggered when this is violated.
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 b420584..154dea0 100644
--- a/setup_environment
+++ b/setup_environment
@@ -51,9 +51,10 @@ 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/,//'`;
export CUDA_VERSION_NUMBER=`echo $CUDA_VERSION_STRING | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($1), 10*$2);}'`
-if [ $CUDA_VERSION_NUMBER -gt 9100 -o $CUDA_VERSION_NUMBER -lt 2030 ]; then
+if [ $CUDA_VERSION_NUMBER -gt 10000 -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
+ echo $CUDA_VERSION_NUMBER
+ return
fi
if [ $CUDA_VERSION_NUMBER -ge 6000 ]; then