-
Notifications
You must be signed in to change notification settings - Fork 427
CMake: 3.25+ #4773
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
base: development
Are you sure you want to change the base?
CMake: 3.25+ #4773
Conversation
We already use features of `FindCUDAToolkit` for nvtx3 that are CMake 3.25+. Modernize and remove pre CMake 3.20 CUDA logic.
Unsupported
|
@WeiqunZhang can you please remove |
|
Should we also update this? amrex/Tools/CMake/AMReXCUDAOptions.cmake Line 61 in e727197
Also don't think we need to worry about CUDA 10 anymore. |
| target_link_libraries(amrex_${D}d PUBLIC CUDA::cusparse) | ||
| endif () | ||
|
|
||
| if(CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 11.2) |
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.
https://amrex-codes.github.io/amrex/docs_html/GPU_Chapter.html
Do we need to update the docs (not that I expect someone to find cuda 11.0 or 11.1)
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.
updated the docs 👍
|
Yes, couple of options we need to refresh now. E.g., add support for LTO on |
Summary
We already use features of
FindCUDAToolkitfor nvtx3 that are CMake 3.25+. Modernize and remove pre CMake 3.20 CUDA logic.Additional background
CMake 3.25 was released in November 2022 and is widely available and very easy to install as a user, if missing.
Also a bit of prep for #4572
As in WarpX, we disable SENSEI CI because the package has gone unsupported and deprecated for a few years now.
Checklist
The proposed changes: