We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d6e467 commit 2c55a64Copy full SHA for 2c55a64
torch_npu/csrc/core/npu/interface/AclInterface.cpp
@@ -656,7 +656,9 @@ aclError AclrtSynchronizeDeviceWithTimeout(void)
656
if (func != nullptr) {
657
return func(timeout);
658
} else {
659
- TORCH_NPU_WARN_ONCE(func, "Failed to find function ", "aclrtSynchronizeDeviceWithTimeout");
+ if (timeout > 0) {
660
+ TORCH_NPU_WARN_ONCE("The ACL_DEVICE_SYNC_TIMEOUT does not take effect. If you want to enable this env, please upgrade CANN to the matching version.");
661
+ }
662
typedef aclError (*AclrtSynchronizeDevice)(void);
663
static AclrtSynchronizeDevice func_backup = nullptr;
664
if (func_backup == nullptr) {
0 commit comments