diff --git a/Tools/GNUMake/comps/hip.mak b/Tools/GNUMake/comps/hip.mak index f887b206e4..9a48b59b98 100644 --- a/Tools/GNUMake/comps/hip.mak +++ b/Tools/GNUMake/comps/hip.mak @@ -8,6 +8,7 @@ ifneq ($(NO_CONFIG_CHECKING),TRUE) ifeq ($(HIP_PATH),) $(error hipconfig failed. Is the HIP toolkit available?) endif + COMP_VERSION = $(hipcc_version) endif CXX = $(HIP_PATH)/bin/hipcc diff --git a/Tools/GNUMake/comps/nvcc.mak b/Tools/GNUMake/comps/nvcc.mak index 7274b2ec22..bd79969a29 100644 --- a/Tools/GNUMake/comps/nvcc.mak +++ b/Tools/GNUMake/comps/nvcc.mak @@ -4,6 +4,7 @@ ifneq ($(NO_CONFIG_CHECKING),TRUE) nvcc_version := $(shell nvcc --version | grep "release" | awk 'BEGIN {FS = ","} {print $$2}' | awk '{print $$2}') nvcc_major_version := $(shell nvcc --version | grep "release" | awk 'BEGIN {FS = ","} {print $$2}' | awk '{print $$2}' | awk 'BEGIN {FS = "."} {print $$1}') nvcc_minor_version := $(shell nvcc --version | grep "release" | awk 'BEGIN {FS = ","} {print $$2}' | awk '{print $$2}' | awk 'BEGIN {FS = "."} {print $$2}') + COMP_VERSION = $(nvcc_version) else nvcc_version := 99.9 nvcc_major_version := 99