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

This fixes build failure in TensorFlow 1.8 for HCC
Tá an tiomantas seo le fáil i:
Yaxun Sam Liu tiomanta 2018-08-07 15:44:59 -04:00
1 tuismitheoir 56126838cc
tiomantas dacb18414e
2 comhad athraithe
+142

Níor tháinig aon chomhaid le do chuardach

+6
Féach ar an gComhad
@@ -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")