AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
519 stars 339 forks source link

AMReX_FLATTEN_FOR #3855

Closed WeiqunZhang closed 4 months ago

WeiqunZhang commented 4 months ago

A new build option to force flattening of ParallelFor and similar functions for host device. The default is yes unless it's a debug build. The CMake option is AMReX_FLATTEN_FOR, whereas for GNU make, it's USE_FLATTEN_FOR.

WeiqunZhang commented 4 months ago

A GCC CI failed with g++-8: fatal error: Killed signal terminated program cc1plus. I cannot reproduce it with GCC 9. May have to disable flattening in that test.