From 5c8ed771d5fe3cc685bc0c3518cb0a00679bd493 Mon Sep 17 00:00:00 2001 From: Jorgen T Date: Mon, 26 Jun 2023 10:19:22 +0200 Subject: [PATCH] Removed testing variable and added better detection of compiler paths --- epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk b/epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk index 32946ff490..d88dd3f5d9 100644 --- a/epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk +++ b/epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk @@ -89,10 +89,10 @@ endif #------------------------------------------------------------------------------- -CUDA_COMPILER := $(shell which nvcc > /dev/null 2>&1; echo $$?) -HIP_COMPILER := $(shell which hipcc > /dev/null 2>&1; echo $$?) +CUDA_COMPILER := $(shell compiler=`which nvcc` && while [[ -L $file ]]; do file=$(readlink "$file"); done && echo "$file") +HIP_COMPILER := $(shell compiler=`which hipcc` && while [[ -L $file ]]; do file=$(readlink "$file"); done && echo "$file") -ifeq ($(CUDA_COMPILER),test) +ifeq ($(CUDA_COMPILER),0) #=== Configure the CUDA compiler # If CXX is not a single word (example "clang++ --gcc-toolchain...") then disable CUDA builds (issue #505)