diff options
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setup_environment b/setup_environment index 7bcc48c..3e98dbc 100644 --- a/setup_environment +++ b/setup_environment @@ -26,7 +26,11 @@ export PATH=$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH # 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 [ `uname` = "Darwin" ]; then + CUDA_VERSION=`nvcc --version | grep release | sed -Ee 's/.*release ([0-9]+\.[0-9]+).*/\1/'` +else + CUDA_VERSION=`nvcc --version | grep release | sed -re 's/.*release ([0-9]+\.[0-9]+).*/\1/'` +fi if [ $# == '1' ] ; then export GPGPUSIM_CONFIG=$CUDA_VERSION/$1 |
