-
Notifications
You must be signed in to change notification settings - Fork 667
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
Add cmake option CUDA_STATIC #5164
Conversation
cmake/third_party.cmake
Outdated
find_cuda_helper_libs(nvjpeg) | ||
list(APPEND OF_CUDA_LIBRARIES ${CUDA_nvjpeg_LIBRARY}) | ||
list(APPEND OF_CUDA_LIBRARIES ${CUDA_nppc_LIBRARY}) | ||
list(APPEND OF_CUDA_LIBRARIES ${CUDA_nppig_LIBRARY}) |
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.
oneflow.cmake 里面现在已经有个 ONEFLOW_CUDA_LIBS
了,为了避免混淆,这个OF_CUDA_LIBRARIES是不是可以考虑改个名字,比如 VENDOR_CUDA_LIBRARIES
if (BUILD_CUDA) | ||
if ((NOT CUDA_STATIC) OR WITH_XLA OR BUILD_SHARED_LIBS) |
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.
建议拿一个干净的build目录,测试一下 BUILD_SHARED_LIBS=ON 的时候能不能正常编译运行
No description provided.