From a31cd2ff47a2bd5384429c305afb571e65f856e7 Mon Sep 17 00:00:00 2001 From: yao_yf Date: Fri, 7 May 2021 15:19:08 +0800 Subject: [PATCH] add detailed description communication init log in cpu --- mindspore/communication/management.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindspore/communication/management.py b/mindspore/communication/management.py index de16ce2e99..d5862215af 100755 --- a/mindspore/communication/management.py +++ b/mindspore/communication/management.py @@ -83,7 +83,8 @@ def init(backend_name=None): elif device_target == "GPU": backend_name = "nccl" else: - raise RuntimeError("Device target {} is not supported.".format(device_target)) + raise RuntimeError("Device target {} is not supported in parallel initialization, " + "please use Ascend or GPU.".format(device_target)) if not isinstance(backend_name, str): raise TypeError("Backend name must be a string, but got {}".format(type(backend_name)))