diff options
| author | Tor Aamodt <[email protected]> | 2012-05-31 16:34:41 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:32 -0700 |
| commit | f10b93eae05cafe2d6ea18e146d517d96d94c133 (patch) | |
| tree | 8e366f77d2b5237fb907433d1d4b845176145363 /setup_environment | |
| parent | 29e7261ad30156f08772e6393ba7d8747bc22c5d (diff) | |
- 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]
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 19 |
1 files changed, 15 insertions, 4 deletions
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 |
