Skip to content

CMake: 3.17+#2813

Merged
atmyers merged 3 commits intoAMReX-Codes:developmentfrom
ax3l:cmake-3.17+
Jun 7, 2022
Merged

CMake: 3.17+#2813
atmyers merged 3 commits intoAMReX-Codes:developmentfrom
ax3l:cmake-3.17+

Conversation

@ax3l
Copy link
Copy Markdown
Member

@ax3l ax3l commented Jun 7, 2022

Summary

We are using find_package(CUDAToolkit ...) now, which is only supported in CMake 3.17+.
Follow-up to #2757

Additional background

Technically, we want to go to 3.20+ soon as well, so that we can drop the old CUDA code paths that we used to forward device flags and CUDA architectures.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

ax3l added 2 commits June 6, 2022 17:58
We are using `find_package(CUDAToolkit ...)` now, which
is only supported in CMake 3.17+.

Technically, we want to go to 3.20+ soon as well, so that
we can drop the old CUDA code paths that we used to forward
device flags and CUDA architectures.
Copy link
Copy Markdown
Contributor

@etpalmer63 etpalmer63 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atmyers atmyers merged commit 6299c2c into AMReX-Codes:development Jun 7, 2022
@ax3l ax3l deleted the cmake-3.17+ branch June 8, 2022 07:32
ax3l added a commit to ax3l/amrex that referenced this pull request Jun 8, 2022
@ax3l ax3l mentioned this pull request Jun 8, 2022
5 tasks
# Add manually nvToolsExt if tiny profiler or base profiler are on.n
# Add manually nvToolsExt if tiny profiler or base profiler are on.
# CMake >= 3.17 provides the module FindCUDAToolkit to do this natively.
# TODO: Modernize me, now that we require CMake 3.17+.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upsi, forgot to add this patch in the last commit.
Follow-up in #2817

atmyers pushed a commit that referenced this pull request Jun 8, 2022
Already searched for since #2813
@ax3l ax3l mentioned this pull request Jun 14, 2022
5 tasks
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.

3 participants