From f10b93eae05cafe2d6ea18e146d517d96d94c133 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 31 May 2012 16:34:41 -0800 Subject: - adding clearer documentation to setup_environment - removing an assert that gets triggered when using CUDA 4.2 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12865] --- setup_environment | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'setup_environment') diff --git a/setup_environment b/setup_environment index 79b0b3b..c1288a9 100644 --- a/setup_environment +++ b/setup_environment @@ -1,14 +1,25 @@ # see README before running this -# change the following to point to your installation of CUDA Toolkit if [ ! -n "$CUDA_INSTALL_PATH" ]; then - if [ -d $HOME/nvcuda/4.0/cuda ]; then - export CUDA_INSTALL_PATH=$HOME/nvcuda/4.0/cuda + + # Be sure to compile GPGPU-Sim with the same version of the CUDA + # Toolkit that you use to compile an application you want to run on + # GPGPU-Sim. + # + # If you need to use multiple CUDA Toolkit versions (e.g., one for + # GPGPU-Sim, and another for some other project), then you can change + # the following line to point to a local install of the CUDA Toolkit + # (this should be a verson that GPGPU-Sim supports). + + MYCUDA_INSTALL_PATH=$HOME/nvcuda/4.2.9/cuda + + if [ -d $MYCUDA_INSTALL_PATH ]; then + export CUDA_INSTALL_PATH=$MYCUDA_INSTALL_PATH fi fi if [ ! -n "$CUDA_INSTALL_PATH" ]; then echo ""; - echo "ERROR ** Install CUDA Toolkit and edit this file to point to it."; + echo "ERROR ** Install CUDA Toolkit then set CUDA_INSTALL_PATH or edit this file."; echo ""; return; fi -- cgit v1.3