Fix __HIP_DEVICE_COMPILE__ not defined when hip/math_functions.h is included

This fixes build failure in TensorFlow 1.8 for HCC
이 커밋은 다음에 포함됨:
Yaxun Sam Liu가 2018-08-07 17:14:39 -04:00를 커밋했습니다
1 부모 69bbf45b44
커밋 058eb7535b
2 파일이 변경됨
+15

검색과 일치하는 파일 없음

+1
파일 보기
@@ -27,6 +27,7 @@ THE SOFTWARE.
// paths to provide a consistent include env and avoid "missing symbol" errors that only appears
// on NVCC path:
#include <hip/hip_common.h>
#if defined(__HIP_PLATFORM_HCC__) && !defined(__HIP_PLATFORM_NVCC__)
#include <hip/hcc_detail/math_functions.h>