From 90094139cc2cd63b228d17cf69b9b7ba7a22022a Mon Sep 17 00:00:00 2001 From: wangchao Date: Thu, 28 Aug 2025 10:12:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20log=EF=BC=9A=20SynchronizeDevice=20with?= =?UTF-8?q?=20FORCE=20STOP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torch_npu/csrc/core/npu/NPUQueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch_npu/csrc/core/npu/NPUQueue.cpp b/torch_npu/csrc/core/npu/NPUQueue.cpp index d3d6833172..3d3bb32ab0 100644 --- a/torch_npu/csrc/core/npu/NPUQueue.cpp +++ b/torch_npu/csrc/core/npu/NPUQueue.cpp @@ -458,7 +458,7 @@ bool Repository::ReadQueue() // At this point, if the execution of this task fails, there will be an error state in the device, // and it needs to be handled through the synchronization interface. auto acl_ret = c10_npu::acl::AclrtSynchronizeDeviceWithTimeout(); - ASCEND_LOGI("ReadQueue: SynchronizeDevice with FORCE STOP, device = %d, write_idx = %u, read_idx = %u, ret = %d, acl_ret = %d", + ASCEND_LOGI("ReadQueue: SynchronizeDevice with FORCE STOP, device = %d, write_idx = %u, read_idx = %u, status = %d, ret = %d, acl_ret = %d", device_idx, write_idx.idx, read_idx.idx, GetStatus(), ret, acl_ret); } return false; @@ -482,7 +482,7 @@ bool Repository::ReadQueue() // At this point, if the execution of this task fails, there will be an error state in the device, // and it needs to be handled through the synchronization interface. auto acl_ret = c10_npu::acl::AclrtSynchronizeDeviceWithTimeout(); - ASCEND_LOGI("ReadQueue: SynchronizeDevice with FORCE STOP, device = %d, write_idx = %u, read_idx = %u, ret = %d, acl_ret = %d", + ASCEND_LOGI("ReadQueue: SynchronizeDevice with FORCE STOP, device = %d, write_idx = %u, read_idx = %u, status = %d, ret = %d, acl_ret = %d", device_idx, write_idx.idx, read_idx.idx, GetStatus(), ret, acl_ret); } return true; -- Gitee