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

This fixes build failure in TensorFlow 1.8 for HCC
Šī revīzija ir iekļauta:
Yaxun Sam Liu committed 2018-08-07 17:14:39 -04:00
1 vecāks dacb18414e
revīzija 450ea49df0
2 files changed
+15

No files matched your search

+1
Parādīt failu
@@ -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>