From f9b930c85fd244c5819eed7971f54e608258a0f7 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Tue, 2 Jul 2013 10:47:50 -0800 Subject: Adding a wildcard to the end of the GCC sed string parser to handle gcc prints that print more information about their version numbers Review ID: 59001. lgtm: 1 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16549] --- setup_environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup_environment') diff --git a/setup_environment b/setup_environment index b4bcd1b..e538463 100644 --- a/setup_environment +++ b/setup_environment @@ -39,7 +39,7 @@ if [ $? = 1 ]; then return; fi -CC_VERSION=`gcc --version | head -1 | sed -re "s/gcc\s+\(.*\)\s+([0-9.]+)/\1/"` +CC_VERSION=`gcc --version | head -1 | sed -re "s/gcc\s+\(.*\)\s+([0-9.]+).*/\1/"` CUDA_VERSION_STRING=`$CUDA_INSTALL_PATH/bin/nvcc --version | awk '/release/ {print $5;}' | sed 's/,//'`; CUDA_VERSION_NUMBER=`echo $CUDA_VERSION_STRING | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($1), 10*$2);}'` -- cgit v1.3