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

cmake: Workaround unspecified CUDA directories on Windows #15

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

stotko
Copy link
Owner

@stotko stotko commented Oct 31, 2019

The compute capability logic has been improved in #8. However, as the variables CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES and CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES are now involved, this resulted in a regression when compiling with Visual Studio (Windows). Here, the variables are not defined [1] [2] which caused build failures. Workaround this issue by manually computing the paths in this scenario.

Once the respective CMake bug is fixed, we can remove the workaround. If this workaround is not sufficient, we need to revert to the older and slower version.

[1] https://gitlab.kitware.com/cmake/cmake/issues/18733
[2] https://gitlab.kitware.com/cmake/cmake/issues/19229

@stotko stotko merged commit 2ef2b74 into master Oct 31, 2019
@stotko stotko deleted the compute_capability_windows_workaround branch October 31, 2019 08:43
@stotko stotko added the bug label Dec 11, 2019
@stotko stotko added this to the 1.1.0 milestone Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant