From 619050ae9692c404147ccb22e32c027222e99203 Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Mon, 22 Apr 2019 23:13:02 -0400 Subject: [PATCH] [hip] Fix use of `__HIP_CLANG_ONLY__` in `hip_ldg.h`. - Check its value instead of whether it's defined or not. [ROCm/clr commit: ca6a5c07eb6261ab12128b1c9dcbd1580f600c8f] --- projects/clr/hipamd/include/hip/hcc_detail/hip_ldg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/hip_ldg.h b/projects/clr/hipamd/include/hip/hcc_detail/hip_ldg.h index a5b80b0a1b..ab86955cd6 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/hip_ldg.h +++ b/projects/clr/hipamd/include/hip/hcc_detail/hip_ldg.h @@ -24,7 +24,7 @@ THE SOFTWARE. #define HIP_INCLUDE_HIP_HCC_DETAIL_HIP_LDG_H #if defined(__HCC_OR_HIP_CLANG__) -#if __hcc_workweek__ >= 16164 || defined(__HIP_CLANG_ONLY__) +#if __hcc_workweek__ >= 16164 || __HIP_CLANG_ONLY__ #include "hip_vector_types.h" #include "host_defines.h" @@ -96,7 +96,7 @@ __device__ inline static double __ldg(const double* ptr) { return ptr[0]; } __device__ inline static double2 __ldg(const double2* ptr) { return ptr[0]; } -#endif // __hcc_workweek__ || defined(__HIP_CLANG_ONLY__) +#endif // __hcc_workweek__ || __HIP_CLANG_ONLY__ #endif // defined(__HCC_OR_HIP_CLANG__)