Skip to content

Commit

Permalink
Removed testing variable and added better detection of compiler paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooorgen committed Jun 26, 2023
1 parent ff18a89 commit 5c8ed77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c8ed77

Please sign in to comment.