Fix declaration conflict when hip/math_functions.h is included first

This fixes build failure in TensorFlow 1.8 for HCC
이 커밋은 다음에 포함됨:
Yaxun Sam Liu가 2018-08-07 15:44:59 -04:00를 커밋했습니다
1 부모 56126838cc
커밋 dacb18414e
2 파일이 변경됨
+142

검색과 일치하는 파일 없음

+6
파일 보기
@@ -31,6 +31,12 @@ THE SOFTWARE.
#include <limits>
#include <stdint.h>
// HCC's own math functions should be included first, otherwise there will
// be conflicts when hip/math_functions.h is included before hip/hip_runtime.h.
#ifdef __HCC__
#include "kalmar_math.h"
#endif
#pragma push_macro("__DEVICE__")
#pragma push_macro("__RETURN_TYPE")