diff options
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setup_environment b/setup_environment index 94f313f..b59a4c1 100644 --- a/setup_environment +++ b/setup_environment @@ -23,11 +23,12 @@ fi # to run the debug build of GPGPU-Sim run: # source setup_environment debug +CUDA_VERSION=`nvcc --version | grep release | sed -re 's/.*release ([0-9]+\.[0-9]+).*/\1/'` if [ $# == '1' ] ; then - export GPGPUSIM_CONFIG=$1 + export GPGPUSIM_CONFIG=$CUDA_VERSION/$1 else - export GPGPUSIM_CONFIG=release + export GPGPUSIM_CONFIG=$CUDA_VERSION/release fi |
