提交 75eacccd 编写于 作者: D Dong Zhihong

"rerun ci"

上级 f632706c
......@@ -8,7 +8,7 @@ from op_test import OpTest, create_op, set_input
if not core.is_compile_gpu():
exit(0)
gpu_count = core.get_cuda_device_count
gpu_count = core.get_cuda_device_count()
g_scope = core.Scope()
g_ctx = core.DeviceContext.create(core.CPUPlace())
......@@ -16,7 +16,7 @@ g_ctx = core.DeviceContext.create(core.CPUPlace())
class TestNCCLInit(unittest.TestCase):
def test_init(self):
self.op_type = "ncclInit"
self.gpus = [int(g) for g in range(gpu_count)]
self.gpus = range(gpu_count)
self.inputs = {}
self.attrs = {"gpus": self.gpus}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册