diff options
| author | Tor Aamodt <[email protected]> | 2012-07-24 16:28:39 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:34 -0700 |
| commit | 18fda652a1c33b8b788d1f631645d516bb68a207 (patch) | |
| tree | 93dad305783b1e101d6b946fa7b21af8c2fc752f /setup_environment | |
| parent | 00406ce229d75dea2034ad285b4941d071552d4d (diff) | |
More beginner instructions
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13510]
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setup_environment b/setup_environment index 0e2fe1c..b7de5aa 100644 --- a/setup_environment +++ b/setup_environment @@ -1,5 +1,7 @@ # see README before running this +export GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN= + if [ ! -n "$CUDA_INSTALL_PATH" ]; then echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH."; return; @@ -64,6 +66,14 @@ if [ $? = 1 ]; then return; 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 -gt 4000 -o $CUDA_VERSION -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 + # The following sets OPENCL_REMOTE_GPU_HOST which is used by GPGPU-Sim to # SSH to remote node to generate PTX for OpenCL kernels when running on # a node that does not have an NVIDIA driver installed. |
