From 08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 26 Jul 2012 17:36:56 -0800 Subject: tell new user what version of GPGPU-Sim this is while trying to build (i.e., in case they can't even get it to build) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13549] --- version_detection.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'version_detection.mk') diff --git a/version_detection.mk b/version_detection.mk index d73a05e..3824866 100644 --- a/version_detection.mk +++ b/version_detection.mk @@ -28,7 +28,8 @@ # Detect CUDA Runtime Version -CUDART_VERSION:=$(shell $(CUDA_INSTALL_PATH)/bin/nvcc --version | awk '/release/ {print $$5;}' | sed 's/,//' | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($$1), 10*$$2);}') +CUDA_VERSION_STRING:=$(shell $(CUDA_INSTALL_PATH)/bin/nvcc --version | awk '/release/ {print $$5;}' | sed 's/,//') +CUDART_VERSION:=$(shell echo $(CUDA_VERSION_STRING) | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($$1), 10*$$2);}') # Detect GCC Version CC_VERSION := $(shell gcc --version | perl -ne '/gcc\s+\(.*\)\s+([0-9.]+)/ and print $$1;') -- cgit v1.3