From df4b4e4bb6a084127e61e6bdd1678eb19e26af94 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Mon, 11 Dec 2017 16:34:10 -0800 Subject: [PATCH] Added _cuda_ to the name of the executable to indicate that it's not clang's version. --- common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 8ef8fe9d..672ea5b2 100644 --- a/common.mk +++ b/common.mk @@ -155,7 +155,8 @@ endif # compiler=clang Enables compilation with clang. ifeq ($(compiler), clang) - BIN_SUFFIX := sm$(SM_ARCH)_clang_$(NVCC_VERSION) + # NVCC_VERSION is used as the proxy for the CUDA version. + BIN_SUFFIX := sm$(SM_ARCH)_clang_cuda_$(NVCC_VERSION) # Clangs needs few extra flags to point it to CUDA SDK # and link the binaries with CUDA runtime. CUDA_BASE=$(realpath $(join $(dir $(shell which nvcc)), ..))