diff options
| author | Tor Aamodt <[email protected]> | 2012-07-26 17:36:56 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:48:52 -0700 |
| commit | 08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 (patch) | |
| tree | dc6fc99131fd83fccf545978412682d1bcd348ba /version_detection.mk | |
| parent | 9a0e4e4a776a963c9950dc3dcd0d23ee0739b755 (diff) | |
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]
Diffstat (limited to 'version_detection.mk')
| -rw-r--r-- | version_detection.mk | 3 |
1 files changed, 2 insertions, 1 deletions
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;') |
