-
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
fix use nvidia cuda libraries bug #62425
fix use nvidia cuda libraries bug #62425
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
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
@@ -364,11 +376,22 @@ void* GetCUPTIDsoHandle() { | |||
FLAGS_cupti_dir, "libcupti.dylib", false, {cupti_lib_path}); | |||
#elif defined(__linux__) && defined(PADDLE_WITH_CUDA) | |||
if (CUDA_VERSION >= 11000 && CUDA_VERSION < 12000) { |
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.
还有L357 cudnn这个库,当前写死了libcudnn.so.8
,我最近有尝试使用cudnn 9,也有问题。
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.
LGTM
@@ -65,7 +65,8 @@ option(WITH_SETUP_INSTALL "Compile PaddlePaddle with setup.py" OFF) | |||
option(WITH_SHARED_PHI "Compile PaddlePaddle with SHARED LIB of PHI" ON) | |||
option(CINN_ONLY "Compile CINN only in Paddle" OFF) | |||
option(CINN_WITH_CUDNN "Compile CINN with CUDNN support" ON) | |||
|
|||
option(WITH_PIP_CUDA_LIBRARIES |
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.
名字改叫WITH_INSTALL_CUDA_LIBRARIES会不会更直观一点
PR types
Others
PR changes
Others
Description
优化paddle支持用户安装paddle不依赖cuda和cudnn的逻辑,同时也支持使用本地cuda和cudnn,将两种方式搜索cuda系列.so文件分隔开,这样做的好处可以同时兼容两种方式
Pcard-67164