Skip to content

Commit 865c6e2

Browse files
committed
1D Chemistry seems to have an issue with two-pass IPO
1 parent 4db238b commit 865c6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function(MFC_SETUP_TARGET)
412412
set(IPO_TARGETS ${ARGS_TARGET})
413413
# Here we need to split into "library" and "executable" to perform IPO on the NVIDIA compiler.
414414
# A little hacky, but it *is* an edge-case for *one* compiler.
415-
if (NVHPC_USE_TWO_PASS_IPO)
415+
if (NVHPC_USE_TWO_PASS_IPO AND NOT(MFC_OpenMP AND ARGS_OpenMP))
416416
add_library(${ARGS_TARGET}_lib OBJECT ${ARGS_SOURCES})
417417
target_compile_options(${ARGS_TARGET}_lib PRIVATE
418418
$<$<COMPILE_LANGUAGE:Fortran>:-Mextract=lib:${ARGS_TARGET}_lib>

0 commit comments

Comments
 (0)