From 24c8b7d8a22324a4d54fcdcbf2b2b011fefe2016 Mon Sep 17 00:00:00 2001 From: Janusz Lisiecki <39967756+JanuszL@users.noreply.github.com> Date: Tue, 9 May 2023 15:51:45 +0200 Subject: [PATCH] Fix cuTE compilation with clang (#939) - clang 1.14 complains about missing function from a host call: cutlass/include/cute/arch/util.hpp:106:32: error: no matching function for call to '__cvta_generic_to_shared' return static_cast(__cvta_generic_to_shared(ptr)); - fixes this by defining CUTE_HOST_DEVICE for clang as well Signed-off-by: Janusz Lisiecki --- include/cute/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cute/config.hpp b/include/cute/config.hpp index c6533510..4b77ee1e 100644 --- a/include/cute/config.hpp +++ b/include/cute/config.hpp @@ -30,7 +30,7 @@ **************************************************************************************************/ #pragma once -#if defined(__CUDA_ARCH__) || defined(_NVHPC_CUDA) +#if defined(__CUDA_ARCH__) || defined(_NVHPC_CUDA) || defined(__clang__) # define CUTE_HOST_DEVICE __forceinline__ __host__ __device__ # define CUTE_DEVICE __forceinline__ __device__ # define CUTE_HOST __forceinline__ __host__