From 9e51e3833f540ebd2eab39097a72d6f21d001ec1 Mon Sep 17 00:00:00 2001 From: lilong12 Date: Thu, 31 Dec 2020 18:28:41 +0800 Subject: [PATCH] update, test=develop (#30047) --- .../paddle/fluid/tests/unittests/test_collective_api_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_collective_api_base.py b/python/paddle/fluid/tests/unittests/test_collective_api_base.py index 9a41f8c55a8..660018e285a 100644 --- a/python/paddle/fluid/tests/unittests/test_collective_api_base.py +++ b/python/paddle/fluid/tests/unittests/test_collective_api_base.py @@ -169,6 +169,7 @@ class TestDistBase(unittest.TestCase): path_id="0", check_error_log=False, need_envs={}): + with_gloo = '0' if backend == "nccl" else '1' required_envs = { "FLAGS_fraction_of_gpu_memory_to_use": "0.15", "FLAGS_eager_delete_tensor_gb": "0.0", @@ -178,7 +179,7 @@ class TestDistBase(unittest.TestCase): "LD_PRELOAD": os.getenv("LD_PRELOAD", ""), "GLOG_v": "0", "NCCL_P2P_DISABLE": "1", - "PADDLE_WITH_GLOO": "1", + "PADDLE_WITH_GLOO": with_gloo, "BACKEND": backend, "PATH_ID": path_id } -- GitLab