From 29e7261ad30156f08772e6393ba7d8747bc22c5d Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 31 May 2012 15:36:59 -0800 Subject: do NOT let setup_environment quietly return if CUDA Toolkit not found [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12863] --- setup_environment | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'setup_environment') 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: -- cgit v1.3