From 5831687985d8c2d0d570adc911acd654b68c8b87 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 --- include/hip/hip_cooperative_groups.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hip/hip_cooperative_groups.h b/include/hip/hip_cooperative_groups.h index 2fea4a5001..5f6e18ea56 100644 --- a/include/hip/hip_cooperative_groups.h +++ b/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__)