-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMakeLists.txt Improvements for CUDA (spcl#1337)
This PR bumps `cmake` version to `3.17` and replaces the deprecated `find_package(CUDA)` with [FindCUDAToolkit](https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html), with a number of improvements to the compilation process: - CUDA Include and Library directories are now handled automatically by `cmake` - CUDA architecture handling is reworked: No more regex in `CMakeLists.txt` or manual `-gencode` string generation in python code. - CUDA source files are now included directly in the targets: cmake handles proper compilation and linking of device code automatically. - Similar modifications to `OpenMP` and `Threads` targets
- Loading branch information
Showing
4 changed files
with
54 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters