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

[WIP] require CMake 3.20+ #349

Closed
wants to merge 5 commits into from
Closed

Conversation

BenWibking
Copy link
Collaborator

@BenWibking BenWibking commented Aug 14, 2023

This enforces a minimum version requirement of CMake 3.20.

This allows us to remove some workarounds that were only needed in older CMake versions. CMake 3.20 was released in 2021, so it should be widely available for all users.

This causes a build error on GPU due to a change in how CMake treats CMAKE_CUDA_ARCHITECTURES that we currently don't have a fix for.

@BenWibking
Copy link
Collaborator Author

/azp run

@psharda
Copy link
Contributor

psharda commented Aug 14, 2023

There's some bug that doesn't let the tests compile on GPUs

@BenWibking
Copy link
Collaborator Author

It looks like the issue is that CUDA_ARCHITECTURES is handled differently in CMake 3.20 (https://cmake.org/cmake/help/latest/prop_tgt/CUDA_ARCHITECTURES.html).

It's not immediately obvious to me how to fix it. I will ask the AMReX developers if they have a fix.

@psharda
Copy link
Contributor

psharda commented Aug 29, 2023

/azp run

@BenWibking
Copy link
Collaborator Author

/azp run

1 similar comment
@BenWibking
Copy link
Collaborator Author

/azp run

@BenWibking
Copy link
Collaborator Author

/azp run

@BenWibking BenWibking marked this pull request as draft September 12, 2023 00:39
@BenWibking BenWibking changed the title require CMake 3.20+ [WIP] require CMake 3.20+ Sep 12, 2023
@BenWibking
Copy link
Collaborator Author

Since this doesn't work, I'm closing it for now. Hopefully CMake will work in the future.

@BenWibking BenWibking closed this Sep 19, 2023
@BenWibking BenWibking deleted the require-cmake-320 branch July 31, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants