Skip to content

Commit c4db9d6

Browse files
committed
remove strict flag & retest with default flags
1 parent 04a901a commit c4db9d6

File tree

523 files changed

+5726
-5770
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

523 files changed

+5726
-5770
lines changed

CMakeLists.txt

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ option(MFC_MPI "Build with MPI" ON
2020
option(MFC_OpenACC "Build with OpenACC" OFF)
2121
option(MFC_GCov "Build with GCov" OFF)
2222
option(MFC_Unified "Build with unified CPU & GPU memory (GH-200 only)" OFF)
23-
option(MFC_Strict "Build with strict floating point operations" OFF)
2423
option(MFC_PRE_PROCESS "Build pre_process" OFF)
2524
option(MFC_SIMULATION "Build simulation" OFF)
2625
option(MFC_POST_PROCESS "Build post_process" OFF)
@@ -137,12 +136,6 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
137136
)
138137
endif()
139138

140-
if (MFC_Strict)
141-
add_compile_options(
142-
-O0
143-
)
144-
endif()
145-
146139
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 10)
147140
add_compile_options(
148141
$<$<COMPILE_LANGUAGE:Fortran>:-fallow-invalid-boz>
@@ -170,14 +163,6 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
170163
)
171164
add_link_options("SHELL: -K trap=fp" "SHELL: -G2")
172165
endif()
173-
174-
if (MFC_Strict)
175-
add_compile_options(
176-
# "SHELL:-hfp0"
177-
# "SHELL:-h vector0"
178-
"SHELL:-o0"
179-
)
180-
endif()
181166

182167
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Flang")
183168
add_compile_options(
@@ -191,11 +176,6 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
191176
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
192177
add_compile_options(-g -Og -traceback -debug)
193178
endif()
194-
195-
if (MFC_Strict)
196-
add_compile_options(-fp-model precise)
197-
add_compile_options(-O0)
198-
endif()
199179
elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC") OR (CMAKE_Fortran_COMPILER_ID STREQUAL "PGI"))
200180
add_compile_options(
201181
$<$<COMPILE_LANGUAGE:Fortran>:-Mfreeform>
@@ -241,12 +221,6 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
241221
message(STATUS "Performing IPO using -Mextract followed by -Minline")
242222
set(NVHPC_USE_TWO_PASS_IPO TRUE)
243223
endif()
244-
245-
if (MFC_Strict)
246-
# add_compile_options(-Kieee)
247-
add_compile_options(-o0)
248-
endif()
249-
250224
else()
251225
CHECK_IPO_SUPPORTED(RESULT SUPPORTS_IPO OUTPUT IPO_ERROR)
252226
if (SUPPORTS_IPO)

docs/documentation/getting-started.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ MFC can be built with support for various (compile-time) features:
126126
| **Debug** | `--debug` | `--no-debug` | Off | Requests the compiler build MFC in debug mode. |
127127
| **GCov** | `--gcov` | `--no-gcov` | Off | Builds MFC with coverage flags on. |
128128
| **Unified Memory** | `--unified` | `--no-unified` | Off | Builds MFC with unified CPU/GPU memory (GH-200 superchip only) |
129-
| **Strict** | `--strict` | `--no-strict` | off | Builds MFC with strict floating point operations |
130129

131130
_⚠️ The `--gpu` option requires that your compiler supports OpenACC for Fortran for your target GPU architecture._
132131

tests/02748F0F/golden-metadata.txt

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)