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

Disable AMReX_FLATTEN_FOR by default #3860

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Docs/sphinx_documentation/source/BuildingAMReX.rst
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ The list of available options is reported in the :ref:`table <tab:cmakevar>` bel
+------------------------------+-------------------------------------------------+-------------------------+-----------------------+
| AMReX_PROBINIT | Enable support for probin file | Platform dependent | YES, NO |
+------------------------------+-------------------------------------------------+-------------------------+-----------------------+
| AMReX_FLATTEN_FOR | Enable flattening of ParallelFor and similar | YES unless for Debug | YES, NO |
| | functions for host code | build | |
| AMReX_FLATTEN_FOR | Enable flattening of ParallelFor and similar | NO | YES, NO |
| | functions for host code | | |
+------------------------------+-------------------------------------------------+-------------------------+-----------------------+
.. raw:: latex

Expand Down
6 changes: 1 addition & 5 deletions Tools/CMake/AMReXOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,7 @@ endif ()

print_option( AMReX_ASSERTIONS )

if ( "${CMAKE_BUILD_TYPE}" MATCHES "Debug" )
option( AMReX_FLATTEN_FOR "Enable flattening of ParallelFor and other similar functions" OFF)
else ()
option( AMReX_FLATTEN_FOR "Enable flattening of ParallelFor and other similar functions" ON)
endif ()
option( AMReX_FLATTEN_FOR "Enable flattening of ParallelFor and other similar functions" OFF)
print_option( AMReX_FLATTEN_FOR )

option(AMReX_BOUND_CHECK "Enable bound checking in Array4 class" OFF)
Expand Down
2 changes: 1 addition & 1 deletion Tools/GNUMake/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ endif
ifdef USE_FLATTEN_FOR
USE_FLATTEN_FOR := $(strip $(USE_FLATTEN_FOR))
else
USE_FLATTEN_FOR := TRUE
USE_FLATTEN_FOR := FALSE
endif

ifdef WARN_ALL
Expand Down
Loading