Skip to content

CMake: Prefer CUDAToolkit over CUDA if available#454

Open
peterbell10 wants to merge 1 commit into
pytorch:mainfrom
peterbell10:cudatoolkit
Open

CMake: Prefer CUDAToolkit over CUDA if available#454
peterbell10 wants to merge 1 commit into
pytorch:mainfrom
peterbell10:cudatoolkit

Conversation

@peterbell10
Copy link
Copy Markdown

In newer CMake versions find_package(CUDA) is deprecated in favor of
find_package(CUDATookit) and enable_language(CUDA).

This first tries to find CUDAToolkit and falls back to CUDA if
it's not available.

cc @malfet

In newer CMake versions `find_package(CUDA)` is deprecated in favor of
`find_package(CUDATookit)` and `enable_language(CUDA)`.

This first tries to find `CUDAToolkit` and falls back to `CUDA` if
it's not available.
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.

2 participants