You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
1. NPUFunctions.h
参考 CUDA 实现:https://github.com/pytorch/pytorch/blob/main/c10/cuda/CUDAFunctions.cpp,API和实现逻辑尽量与其保持一致
ACL 和 CUDA API 的差异单独抽取一层,使
NPUFunctions与CUDAFunctions尽量保持高度一致比如:
aclrtGetDevice()与cudaGetDevice()存在差异,后者可直接获取当前设备,而前者在返回ACL_ERROR_RT_CONTEXT_NULL错误码时也是正常的,此错误码表示先前尚未 SetDevice 或创建 ContextCANN 文档:https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha003/apiref/appdevgapi/aclcppdevg_03_0040.html