Hi-PACE / hipace

Highly efficient Plasma Accelerator Emulation, quasistatic particle-in-cell code
https://hipace.readthedocs.io
Other
51 stars 14 forks source link

CMake: No Deprecation Warnings #1118

Closed ax3l closed 3 months ago

ax3l commented 3 months ago

Setting a cmake_policy to OLD is deprecated by definition and will raise a verbose warning.

AlexanderSinn commented 3 months ago

This just disables the warning, right? Can we use the NEW policy instead?

ax3l commented 3 months ago

Yes, I need to work down from AMReX and bump the CMake requirements to 3.24+, so we can continue to use native for CUDA_ARCHITECTURES defaults without breaking the current logic. I delayed this a bit so that CMake release is widely used and tested (we are now at 3.29, so we can take it on). https://cmake.org/cmake/help/latest/prop_tgt/CUDA_ARCHITECTURES.html