summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2012-05-31 15:36:59 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:47:32 -0700
commit29e7261ad30156f08772e6393ba7d8747bc22c5d (patch)
tree4a36eaa8409d1d10a75b2407ef9daa6305711aa7 /setup_environment
parentb4fb5160629eed9fa51178412382689b90223cda (diff)
do NOT let setup_environment quietly return if CUDA Toolkit not found
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12863]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment10
1 files changed, 9 insertions, 1 deletions
diff --git a/setup_environment b/setup_environment
index 98f98c0..79b0b3b 100644
--- a/setup_environment
+++ b/setup_environment
@@ -2,7 +2,15 @@
# change the following to point to your installation of CUDA Toolkit
if [ ! -n "$CUDA_INSTALL_PATH" ]; then
- export CUDA_INSTALL_PATH=$HOME/nvcuda/4.0/cuda
+ if [ -d $HOME/nvcuda/4.0/cuda ]; then
+ export CUDA_INSTALL_PATH=$HOME/nvcuda/4.0/cuda
+ fi
+fi
+if [ ! -n "$CUDA_INSTALL_PATH" ]; then
+ echo "";
+ echo "ERROR ** Install CUDA Toolkit and edit this file to point to it.";
+ echo "";
+ return;
fi
# to run the debug build of GPGPU-Sim run: