From fd4f4d0e5f5eb7eccfaf2a1234e66d612464a94b Mon Sep 17 00:00:00 2001 From: peizhilin Date: Thu, 3 Jan 2019 19:52:24 +0800 Subject: [PATCH] fix build issue test=develop --- paddle/fluid/platform/cuda_helper_test.cu | 2 +- paddle/fluid/platform/float16_test.cu | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/platform/cuda_helper_test.cu b/paddle/fluid/platform/cuda_helper_test.cu index 5b605fdc964..ff49b92ff55 100644 --- a/paddle/fluid/platform/cuda_helper_test.cu +++ b/paddle/fluid/platform/cuda_helper_test.cu @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #define PADDLE_CUDA_FP16 diff --git a/paddle/fluid/platform/float16_test.cu b/paddle/fluid/platform/float16_test.cu index b1b51d804e0..14cad927f06 100644 --- a/paddle/fluid/platform/float16_test.cu +++ b/paddle/fluid/platform/float16_test.cu @@ -271,11 +271,13 @@ TEST(float16, isinf) { float16 b = float16(INFINITY); // underflow to 0 float16 native_a(5e-40f); - // overflow to inf - float16 native_b(5e40f); EXPECT_EQ(std::isinf(a), true); EXPECT_EQ(std::isinf(b), true); +#ifndef _WIN32 + // overflow to inf + float16 native_b(5e40f); EXPECT_EQ(std::isinf(native_b), true); +#endif EXPECT_EQ(native_a, float16(0)); } -- GitLab