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

Refine CMake CUDA version handling #5192

Merged
merged 8 commits into from
Jun 15, 2021

Conversation

jackalcooper
Copy link
Collaborator

No description provided.

@jackalcooper jackalcooper changed the title CMake logs CUDA version and root dir Refine CMake CUDA version handling Jun 15, 2021
@jackalcooper jackalcooper requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 15, 2021 03:57
else()
list(APPEND DEFAULT_CUDA_NVCC_GENCODES "arch=compute_70,code=compute_70")
endif()
list(APPEND DEFAULT_CUDA_NVCC_GENCODES "arch=compute_70,code=compute_70")
endif()
if(NOT DEFINED CUDA_NVCC_GENCODES)
set(CUDA_NVCC_GENCODES ${DEFAULT_CUDA_NVCC_GENCODES})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

165-167 行可以改成

set(CUDA_NVCC_GENCODES "${DEFAULT_CUDA_NVCC_GENCODES}" CACHE STRING "")

@jackalcooper jackalcooper requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 15, 2021 04:17
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 15, 2021 04:43
@oneflow-ci-bot oneflow-ci-bot merged commit d2bde30 into master Jun 15, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the cmake-log-cuda-version-and-root-dir branch June 15, 2021 05:59
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.

4 participants