-
Notifications
You must be signed in to change notification settings - Fork 187
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
Refactor CMake package inclusion #3574
Refactor CMake package inclusion #3574
Conversation
The feature is not longer required, and actually has compatibility issues with CUDA 10.1 (e.g. `CUDA_cublas_device_LIBRARY-NOTFOUND`). From the CMake 3.10 documentation: ["The FindCUDA module has been superseded by first-class support for the CUDA language in CMake. It is no longer necessary to use this module or call `find_package(CUDA)`. This module now exists only for compatibility with projects that have not been ported."]( https://cmake.org/cmake/help/v3.10/module/FindCUDA.html)
Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
The Cython version is already written to the output of CMake 3.10+.
The CMake check ignored the Cython version passed as argument to the `find_package()` function.
The NumPy version is already written to the output of CMake 3.10+.
Break Python/Cython cyclic dependency and re-use values from the first call to `find_package(PythonInterp 3.5 REQUIRED)` instead of calling the function again without the correct version.
Codecov Report
@@ Coverage Diff @@
## python #3574 +/- ##
======================================
- Coverage 88% 88% -1%
======================================
Files 524 524
Lines 23599 23599
======================================
- Hits 20776 20775 -1
- Misses 2823 2824 +1
Continue to review full report at Codecov.
|
@KaiSzuttor here is a draft of the next PR where we split the CUDA compiler detection mechanism in separate files: jngrad/espresso:refactor-cmake-with_gpu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that improves readability a lot! thanks. Could you please look at my comments, maybe we can get rid of some global flags.
just open a draft PR, LGTM |
Description of changes:
CMakeLists.txt
to dedicated helper filescmake/Find<package>.cmake
forfind_package()
CMakeLists.txt
WITH_CUDA
is set to true but no CUDA-capable compiler is foundWITH_CLANG_TIDY
is set to true but Clang-tidy is not found or its version doesn't match the Clang compiler versionFindCUDA
in favor of native CUDA support in CMake 3.10 (required for WIP: Stokesian Dynamics #3445)