-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
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
[PHI]Fix cub bugs when use PHI shared lib in CUDA12 #57820
[PHI]Fix cub bugs when use PHI shared lib in CUDA12 #57820
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 780e10f's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cmake/third_party.cmake
Outdated
@@ -372,9 +372,12 @@ if(WITH_ONNXRUNTIME) | |||
endif() | |||
|
|||
if(WITH_GPU) | |||
if(${CMAKE_CUDA_COMPILER_VERSION} LESS 11.0) | |||
if(${CMAKE_CUDA_COMPILER_VERSION} LESS 11.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外这里之所以改的原因是,cccl支持cuda11.1及以上版本
* fix cuda12 bugs * fix windows bugs * move cccl to third_party * perfect code * fix cuda bugs
* fix cuda12 bugs * fix windows bugs * move cccl to third_party * perfect code * fix cuda bugs
* fix cuda12 bugs * fix windows bugs * move cccl to third_party * perfect code * fix cuda bugs
PR types
Bug fixes
PR changes
Others
Description
Pcard-67164
修复在cuda12环境下使用phi动态库,三方库cub造成的reduce精度问题,修复方案是使用nvidia cccl代码库来替代cub,顺便优化了creation.py的部分代码