diff options
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;') |
