From bdce32238f94552998fcefce673882231bb4b2e6 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Tue, 9 May 2017 10:14:16 -0500 Subject: [PATCH] added guard against hip_runtime.h so that non-hcc compilers can use it Change-Id: I3d68deda9ce8a5956e21e15a69e549d6c21e3e39 [ROCm/hip commit: a38e36ec2f3905a3701619b6e72c23a39c9709c1] --- projects/hip/include/hip/hcc_detail/hip_runtime.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index 06ce65bc9a..4d8876d8f4 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hip/hcc_detail/hip_runtime.h @@ -41,6 +41,8 @@ THE SOFTWARE. #include #endif//__cplusplus +#if __HCC__ + // Define NVCC_COMPAT for CUDA compatibility #define NVCC_COMPAT #define CUDA_SUCCESS hipSuccess @@ -481,6 +483,6 @@ do {\ */ - +#endif #endif//HIP_HCC_DETAIL_RUNTIME_H