Skip to content
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

Merged
merged 7 commits into from
Jun 18, 2021
Merged

Add cmake option CUDA_STATIC #5164

merged 7 commits into from
Jun 18, 2021

Conversation

liujuncheng
Copy link
Collaborator

No description provided.

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})
Copy link
Collaborator

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)
Copy link
Collaborator

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 的时候能不能正常编译运行

@liujuncheng liujuncheng marked this pull request as ready for review June 18, 2021 08:45
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 18, 2021 10:03
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 18, 2021 10:47
@oneflow-ci-bot oneflow-ci-bot merged commit 1974e32 into master Jun 18, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the dev_cuda_static branch June 18, 2021 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants