summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2013-07-02 10:47:50 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:57 -0700
commitf9b930c85fd244c5819eed7971f54e608258a0f7 (patch)
treec1638a79b63fbe03481aef3f8b5b2a2fa98376d1 /setup_environment
parent02c8fea62d5307493f4ead076cfd91f3955f53f1 (diff)
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]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment2
1 files changed, 1 insertions, 1 deletions
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);}'`