Skip to content
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

CMake: Update CUDA Logic to 3.24+ #3948

Open
ax3l opened this issue May 21, 2024 · 0 comments
Open

CMake: Update CUDA Logic to 3.24+ #3948

ax3l opened this issue May 21, 2024 · 0 comments
Assignees

Comments

@ax3l
Copy link
Member

ax3l commented May 21, 2024

In CMake 3.24, the native flag was introduced for CUDA_ARCHITECTURES, which is what we currently do in our old logic.
https://cmake.org/cmake/help/latest/prop_tgt/CUDA_ARCHITECTURES.html

Transitioning is now possible (CMake is at 3.29) and we can then drop cmake_policy(SET CMP0104 OLD) that we used for the transition period.
https://github.com/AMReX-Codes/amrex/blob/24.05/CMakeLists.txt#L19-L27

@ax3l ax3l self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant