#2410: compiling Baikal with gcc >= 9.3 is very slow
| Reporter: | Roland Haas |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | major |
| Component: | EinsteinToolkit thorn |
Comment (by Roland Haas):
Time spent compiling Baikal and BaikalVacuum version 8b2d570 "WVUThorns/Baikal*: Compute finite difference derivatives within functions instead of inlined. Results in ~2.4x faster codegen and much faster compiles with GCC 9.3 and later" using -O1 -march=core using gcc 9.3.0 on the same OSX VM using MacPorts as in the description (only showing files taking more than 1s):
| File name | time to compile |
|---|---|
| Baikal/src/driver_enforcedetgammabar_constraint.c | 12.2738 |
| Baikal/src/BSSN_RHSs_enable_Tmunu_True_FD_order_4.c | 7.50983 |
| Baikal/src/driver_BSSN_T4UU.c | 5.40932 |
| Baikal/src/driver_pt2_BSSN_RHSs.c | 3.18587 |
| Baikal/src/BSSN_Ricci_FD_order_4.c | 2.23229 |
| BaikalVacuum/src/BSSN_RHSs_enable_Tmunu_False_FD_order_8.c | 20.5416 |
| BaikalVacuum/src/driver_pt2_BSSN_RHSs.c | 13.5228 |
| BaikalVacuum/src/BSSN_RHSs_enable_Tmunu_False_FD_order_6.c | 11.0136 |
| BaikalVacuum/src/BSSN_Ricci_FD_order_8.c | 5.86034 |
| BaikalVacuum/src/BSSN_Ricci_FD_order_6.c | 3.13888 |
| BaikalVacuum/src/BSSN_to_ADM.c | 1.22795 |
I am recompiling the release code to compare but is has been compiling for a couple minutes already so is much slower to compile.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2410/compiling-baikal-with-gcc-93-is-very-slow