From 99308b1876b79aa4157767d34716095f54acb20d Mon Sep 17 00:00:00 2001 From: dong zhihong Date: Sat, 28 Oct 2017 06:40:37 +0800 Subject: [PATCH] rerun CI --- python/paddle/v2/framework/tests/test_nccl_init_op.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/paddle/v2/framework/tests/test_nccl_init_op.py b/python/paddle/v2/framework/tests/test_nccl_init_op.py index 9fd4b3e07c..b56a857a98 100644 --- a/python/paddle/v2/framework/tests/test_nccl_init_op.py +++ b/python/paddle/v2/framework/tests/test_nccl_init_op.py @@ -9,6 +9,10 @@ if not core.is_compile_gpu(): exit(0) gpu_count = core.get_cuda_device_count() + +if gpu_count <= 1: + exit(1) + g_scope = core.Scope() g_ctx = core.DeviceContext.create(core.CPUPlace()) -- GitLab