Skip to content

Commit 3319072

Browse files
committed
fix jit kernel test on mac
test=develop
1 parent 44cb70c commit 3319072

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

paddle/fluid/operators/math/jit_kernel_test.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,11 @@ TEST(JitKernel, pool) {
801801
std::dynamic_pointer_cast<const jit::Kernel>(pvmul_d));
802802

803803
const auto& pvmul_from_key = jit::KernelPool::Instance().Get("vmulfjit4");
804-
EXPECT_EQ(pvmul_f, pvmul_from_key);
804+
#if defined(__APPLE__) || defined(__OSX__) || defined(_WIN32)
805+
EXPECT_EQ(pvmul_from_key, nullptr);
806+
#else
807+
EXPECT_EQ(pvmul_from_key, pvmul_f);
808+
#endif
805809
const auto& pvmul_from_key2 = jit::KernelPool::Instance().Get("vmulfjit");
806810
EXPECT_TRUE(pvmul_from_key2 == nullptr);
807811
}

0 commit comments

Comments
 (0)