Skip to content

Commit

Permalink
Quick fix for baseline generation
Browse files Browse the repository at this point in the history
The seperate small kernel testing does not need to be
(and should not) run when generating baselines.
  • Loading branch information
jgfouca committed Nov 13, 2024
1 parent 230167c commit 2bb921e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/eamxx/src/physics/p3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ if (SCREAM_P3_SMALL_KERNELS)
add_library(p3 ${P3_SRCS} ${P3_SK_SRCS})
else()
add_library(p3 ${P3_SRCS})
# If small kernels are ON, we don't need a separate executable to test them.
# Also, we never want to generate baselines with this separate executable
if (NOT SCREAM_LIBS_ONLY AND NOT SCREAM_ONLY_GENERATE_BASELINES)
add_library(p3_sk ${P3_SRCS} ${P3_SK_SRCS})
# Always build p3_sk with SCREAM_P3_SMALL_KERNELS on
Expand Down
4 changes: 3 additions & 1 deletion components/eamxx/src/physics/p3/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ if (SCREAM_ENABLE_BASELINE_TESTS)
${FORCE_RUN_DIFF_FAILS})
endif()

if (NOT SCREAM_P3_SMALL_KERNELS)
# If small kernels are ON, we don't need a separate executable to test them.
# Also, we never want to generate baselines with this separate executable
if (NOT SCREAM_P3_SMALL_KERNELS AND NOT SCREAM_ONLY_GENERATE_BASELINES)
CreateUnitTest(p3_sk_tests "${P3_TESTS_SRCS}"
LIBS p3_sk p3_test_infra
EXE_ARGS "--args ${BASELINE_FILE_ARG}"
Expand Down

0 comments on commit 2bb921e

Please sign in to comment.