diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index d656c12d8f8640bcd7ea50bcf8c1aa3fa0852931..838f0277aed6f1c90f318235379ba67b429b03c5 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -35,6 +35,10 @@ if(NOT WITH_GPU OR WIN32) LIST(REMOVE_ITEM TEST_OPS test_reducescatter) endif() +if(WIN32) + LIST(REMOVE_ITEM TEST_OPS test_boxps) +endif() + LIST(REMOVE_ITEM TEST_OPS test_launch) if (NOT ${WITH_GPU}) diff --git a/python/paddle/fluid/tests/unittests/test_boxps.py b/python/paddle/fluid/tests/unittests/test_boxps.py index 6a068d00776fc856fa5dcbf63dfe519bcf1acf90..0b07f965dd8b2ac32c32716bb34cd4a712a5be93 100644 --- a/python/paddle/fluid/tests/unittests/test_boxps.py +++ b/python/paddle/fluid/tests/unittests/test_boxps.py @@ -58,8 +58,9 @@ class TestBoxPSPreload(unittest.TestCase): batch1 = np.ones( (batch_size, 2, 1)).astype("int64").reshape(batch_size, 2, 1) filelist = [] + place_str = "cpu" if is_cpu else "gpu" for i in range(2): - filelist.append("test_hdfs_" + str(i)) + filelist.append("test_hdfs_" + place_str + "_" + str(i)) for f in filelist: with open(f, "w") as fout: for ins in batch1: