From 0dde5be16b198c9620f9d5091914434907a28318 Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Thu, 5 Jul 2018 20:49:47 +0000 Subject: [PATCH] Enable surface functions on HIP clang path Fix surface test on HIP clang path. [ROCm/hip commit: 22b60afa0d350ba7b3fe98ab4257a2949626c657] --- projects/hip/include/hip/hcc_detail/hip_runtime.h | 2 +- projects/hip/include/hip/hcc_detail/surface_functions.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index 48818fb15d..267f970377 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hip/hcc_detail/hip_runtime.h @@ -110,9 +110,9 @@ extern int HIP_TRACE_API; #include #include #include +#include #if __HCC__ #include -#include #endif // __HCC__ // TODO-HCC remove old definitions ; ~1602 hcc supports __HCC_ACCELERATOR__ define. diff --git a/projects/hip/include/hip/hcc_detail/surface_functions.h b/projects/hip/include/hip/hcc_detail/surface_functions.h index 562cc440ed..607f221901 100644 --- a/projects/hip/include/hip/hcc_detail/surface_functions.h +++ b/projects/hip/include/hip/hcc_detail/surface_functions.h @@ -23,8 +23,6 @@ THE SOFTWARE. #ifndef HIP_INCLUDE_HIP_HCC_DETAIL_SURFACE_FUNCTIONS_H #define HIP_INCLUDE_HIP_HCC_DETAIL_SURFACE_FUNCTIONS_H -#include -#include #include #define __SURFACE_FUNCTIONS_DECL__ static __inline__ __device__