Closed pbosler closed 3 years ago
We currently do not support unit tests in release builds. The debug_tools
test might fail cause some optimization cause the fpe to not be thrown. The other one is probably failing because of some non bfb optimizations? I'm not sure.
Are the other unit tests all passing? That's quite remarkable. If so, we may wonder whether we want to have a release build in our PR or Nightly testing. @jgfouca ?
Edit: by "not support" I mean that we do not run any test in either our nightly or PR jenkins jobs. But it is something we should probably consider (even if such build had fewer tests).
Yes, these are the only 17 tests that fail in a release build (openmp).
@pbosler did you try also a build with only Serial as enabled Kokkos backend?
With serial, only the ekat debug_tools test fails. The shoc_varorcovar.cpp tests pass.
edit: with CMAKE_BUILD_TYPE=RELEASE
@bartgol - this looks like an accute issue which must have gotten fixed. Can we close?
I don't know. I think tests might still fail in non-debug builds. Perhaps we should add some logic to disable tests in non-debug builds? @jgfouca what do you think?
@bartgol , yes, I think we should probably expect ctest to work for a release build. I will look into it. This change will be necessary if we ever add optimized builds to test-all-scream.
2 programs, which account for 17 tests (the shoc test below is run with OMP_NUM_THREADS=1...16) fail with CMAKE_BUILD_TYPE=RELEASE and CMAKE_BUILD_TYPE=RelWithDebInfo, but they pass with CMAKE_BUILD_TYPE=DEBUG. Same results with both gcc6.5 and gcc7.3.
Program 1:
ekat/tests/utils/debug_tools.cpp
, error from LastTest.logProgram 2:
scream/src/physics/tests/shoc_varorcovar.cpp
, error from LastTest.log