diff options
| author | Tor Aamodt <[email protected]> | 2012-05-31 23:23:58 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:32 -0700 |
| commit | 7edfd64a2b39222d7424d2b6c0f14a68fe1903ed (patch) | |
| tree | 7c28fc5c7b87ce46cf38acf14e0a220845eb68f0 /setup_environment | |
| parent | f10b93eae05cafe2d6ea18e146d517d96d94c133 (diff) | |
- Update README file to be slightly more user friendly (i.e., try not to imply user should bugger off and stop asking developer for help)
- Remove ridiculously long and cryptic comment from setup_environment. Most people will use CUDA_INSTALL_PATH.
- Remove decuda targets from Makefile
- Add check to Makefile to insist that setup_environment was run first
- Add version file (eliminate redundancy) and remove version strings from src/cuda-sim/cuda-sim.cc
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12874]
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/setup_environment b/setup_environment index c1288a9..c805ada 100644 --- a/setup_environment +++ b/setup_environment @@ -1,26 +1,7 @@ # see README before running this if [ ! -n "$CUDA_INSTALL_PATH" ]; then - - # 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 then set CUDA_INSTALL_PATH or edit this file."; - echo ""; + echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH."; return; fi @@ -57,8 +38,8 @@ fi # static link setup in prior GPGPU-Sim releases. export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -re 's/.*gpgpu_sim.*(release|debug)://'` export LD_LIBRARY_PATH=$GPGPUSIM_ROOT/lib/$GPGPUSIM_CONFIG:$LD_LIBRARY_PATH -export PATH=`echo $PATH | sed "s#$GPGPUSIM_ROOT/decuda/:$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:##"` -export PATH=$GPGPUSIM_ROOT/decuda/:$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH +export PATH=`echo $PATH | sed "s#$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:##"` +export PATH=$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH # 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 |
