Fix __HIP_DEVICE_COMPILE__ not defined when hip/math_functions.h is included
This fixes build failure in TensorFlow 1.8 for HCC
Tá an tiomantas seo le fáil i:
1 tuismitheoir
69bbf45b44
tiomantas
058eb7535b
2 comhad athraithe
+15
Níor tháinig aon chomhaid le do chuardach
@@ -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>
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir