diff options
| author | Tor Aamodt <[email protected]> | 2012-06-13 16:24:36 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:32 -0700 |
| commit | fca5015be90f580ac630f0a1638daa26653d68ab (patch) | |
| tree | 656fa37b8c1699fa61780cb6bb3e7fb0e4b5f5e2 /setup_environment | |
| parent | 77649b0b8448a5305034a2007d29c06410585e26 (diff) | |
move check for nvcc after we set PATH
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13085]
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/setup_environment b/setup_environment index 066714e..ff089dc 100644 --- a/setup_environment +++ b/setup_environment @@ -8,15 +8,6 @@ if [ ! -d "$CUDA_INSTALL_PATH" ]; then echo "ERROR ** CUDA_INSTALL_PATH=$CUDA_INSTALL_PATH invalid (directory does not exist)"; return; fi -NVCC_PATH=`which nvcc`; -if [ $? = 1 ]; then - echo ""; - echo "ERROR ** nvcc (from CUDA Toolkit) was not found in PATH but required to build GPGPU-Sim."; - echo " Try adding $CUDA_INSTALL_PATH/bin/ to your PATH environment variable."; - echo " Please also be sure to read the README file if you have not done so."; - echo ""; - return; -fi # to run the debug build of GPGPU-Sim run: # source setup_environment debug @@ -54,6 +45,16 @@ export LD_LIBRARY_PATH=$GPGPUSIM_ROOT/lib/$GPGPUSIM_CONFIG:$LD_LIBRARY_PATH export PATH=`echo $PATH | sed "s#$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:##"` export PATH=$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH +NVCC_PATH=`which nvcc`; +if [ $? = 1 ]; then + echo ""; + echo "ERROR ** nvcc (from CUDA Toolkit) was not found in PATH but required to build GPGPU-Sim."; + echo " Try adding $CUDA_INSTALL_PATH/bin/ to your PATH environment variable."; + echo " Please also be sure to read the README file if you have not done so."; + echo ""; + return; +fi + # 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 # a node that does not have an NVIDIA driver installed. |
