From d4e674170d20d3165c1d752fde460409df6edd3a Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Mon, 21 Sep 2020 14:26:36 -0400 Subject: [PATCH] use only hip compiler to compile hip cooperative groups SWDEV-252377 Change-Id: I6cf749dad2bf05c2e49fed495ab2833c574c2215 [ROCm/hip commit: 5831687985d8c2d0d570adc911acd654b68c8b87] --- projects/hip/include/hip/hip_cooperative_groups.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hip_cooperative_groups.h b/projects/hip/include/hip/hip_cooperative_groups.h index 2fea4a5001..5f6e18ea56 100644 --- a/projects/hip/include/hip/hip_cooperative_groups.h +++ b/projects/hip/include/hip/hip_cooperative_groups.h @@ -31,7 +31,7 @@ THE SOFTWARE. #define HIP_INCLUDE_HIP_HIP_COOPERATIVE_GROUP_H #if defined(__HIP_PLATFORM_HCC__) && !defined(__HIP_PLATFORM_NVCC__) -#if __cplusplus +#if __cplusplus && defined(__clang__) && defined(__HIP__) #include #endif #elif defined(__HIP_PLATFORM_NVCC__) && !defined(__HIP_PLATFORM_HCC__)