We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考 CUDA 实现:https://github.com/pytorch/pytorch/blob/main/c10/cuda/CUDAFunctions.cpp,API和实现逻辑尽量与其保持一致
ACL 和 CUDA API 的差异单独抽取一层,使 NPUFunctions 与 CUDAFunctions 尽量保持高度一致
NPUFunctions
CUDAFunctions
比如:aclrtGetDevice() 与 cudaGetDevice() 存在差异,后者可直接获取当前设备,而前者在返回 ACL_ERROR_RT_CONTEXT_NULL 错误码时也是正常的,此错误码表示先前尚未 SetDevice 或创建 Context CANN 文档:https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha003/apiref/appdevgapi/aclcppdevg_03_0040.html
aclrtGetDevice()
cudaGetDevice()
ACL_ERROR_RT_CONTEXT_NULL
The text was updated successfully, but these errors were encountered:
shink
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: