#2426: g++-10 possibly miscompiles parts of Carpet
Reporter:Roland Haas
Status:new
Milestone:
Version:
Type:bug
Priority:major
Component:Other

In #2410 its was found that while -O2 compiles Baikal very slowly using the various -f options reported by gcc -Q -O2 --help=optimizers compiles Baikal more quickly.

However using these options makes the test CarpetRegrid2/test/regrid2_2cen.par fail with an error enforcing the N13CarpetRegrid215combine_regionsE property:

Property N13CarpetRegrid215combine_regionsE
WARNING level 0 from host ekohaes8 process 0
  in thorn CarpetRegrid2, file /data/rhaas/postdoc/gr/cactus/ET_Turing/arrangements/Carpet/CarpetRegrid2/src/property.cc:34:
  -> Property does not hold after being enforced
WARNING level 0 from host ekohaes8 process 0
  in thorn CarpetRegrid2, file /data/rhaas/postdoc/gr/cactus/ET_Turing/arrangements/Carpet/CarpetRegrid2/src/property.cc:34:
  -> Property does not hold after being enforced

and adding some extra output and debug code:

diff --git a/CarpetRegrid2/src/property.cc b/CarpetRegrid2/src/property.cc
index 167acd00..0beb791d 100644
--- a/CarpetRegrid2/src/property.cc
+++ b/CarpetRegrid2/src/property.cc
@@ -171,6 +171,12 @@ bool combine_regions::test_impl(gh const &hh, dh const &dd,
   CCTK_REAL const regions_size = static_cast<CCTK_REAL>(regions.at(rl).size());
   CCTK_REAL const combined_size = static_cast<CCTK_REAL>(combined.size());

+  std::cout << "regions " << regions << "\n";
+  std::cout << "combined_region " << combined << "\n";
+  std::cout << "combined_region.size() " << combined.size() << "\n";
+  std::cout << "set size: " << regio

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2426/g-10-possibly-miscompiles-parts-of-carpet