--- a/driver/reducecalculation_driver.hpp +++ b/driver/reducecalculation_driver.hpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -77,7 +78,7 @@ int32_t mloReduceCalculationForwardRunHost(miopenTensorDescriptor_t inputDesc, for(size_t i = 0; i < reduce_size; ++i) { Tcheck val = static_cast(input[input_idx]); - if(nanPropagation && isnan(val)) + if(nanPropagation && std::isnan(val)) { val = 0.0f; }