Skip to content

Commit 0a96241

Browse files
authored
Enable FPE traps in all github actions (#1601)
1 parent c2795ec commit 0a96241

10 files changed

Lines changed: 73 additions & 30 deletions

.github/workflows/burn_cell.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Run burn_cell (VODE, subch_simple)
3636
run: |
3737
cd unit_test/burn_cell
38-
./main3d.gnu.ex inputs_subch_simple > test.out
38+
./main3d.gnu.ex inputs_subch_simple amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
3939
4040
- name: Compare to stored output (VODE, subch_simple)
4141
run: |
@@ -51,7 +51,9 @@ jobs:
5151
- name: Run burn_cell (VODE, ECSN)
5252
run: |
5353
cd unit_test/burn_cell
54-
./main3d.gnu.ex inputs_ecsn > test.out
54+
# disable fpe_trap_overflow, as there's a spurious exception when
55+
# calculating DEL in vode_dvnlsd.H.
56+
./main3d.gnu.ex inputs_ecsn amrex.fpe_trap_{invalid,zero}=1 > test.out
5557
5658
- name: Compare to stored output (VODE, ECSN)
5759
run: |
@@ -67,7 +69,7 @@ jobs:
6769
- name: Run burn_cell (VODE, ignition_chamulak)
6870
run: |
6971
cd unit_test/burn_cell
70-
./main3d.gnu.ex inputs_ignition_chamulak > test.out
72+
./main3d.gnu.ex inputs_ignition_chamulak amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
7173
7274
- name: Compare to stored output (VODE, ignition_chamulak)
7375
run: |
@@ -83,7 +85,7 @@ jobs:
8385
- name: Run burn_cell (ForwardEuler, triple_alpha_plus_cago)
8486
run: |
8587
cd unit_test/burn_cell
86-
./main3d.gnu.ex inputs_triple > test.out
88+
./main3d.gnu.ex inputs_triple amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
8789
8890
- name: Compare to stored output (ForwardEuler, triple_alpha_plus_cago)
8991
run: |
@@ -99,7 +101,7 @@ jobs:
99101
- name: Run burn_cell (BackwardEuler, subch_simple)
100102
run: |
101103
cd unit_test/burn_cell
102-
./main3d.gnu.ex inputs_subch_simple > test.out
104+
./main3d.gnu.ex inputs_subch_simple amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
103105
104106
- name: Compare to stored output (BackwardEuler, subch_simple)
105107
run: |
@@ -115,7 +117,7 @@ jobs:
115117
- name: Run burn_cell (QSS, aprox13)
116118
run: |
117119
cd unit_test/burn_cell
118-
./main3d.gnu.ex inputs_aprox13 > test.out
120+
./main3d.gnu.ex inputs_aprox13 amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
119121
120122
- name: Compare to stored output (QSS, aprox13)
121123
run: |
@@ -131,9 +133,13 @@ jobs:
131133
- name: Run burn_cell (RKC, aprox13)
132134
run: |
133135
cd unit_test/burn_cell
134-
./main3d.gnu.ex inputs_aprox13 unit_test.temperature=1.e9 > test.out
136+
./main3d.gnu.ex inputs_aprox13 unit_test.temperature=1.e9 amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
135137
136138
- name: Compare to stored output (RKC, aprox13)
137139
run: |
138140
cd unit_test/burn_cell
139141
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/aprox13_RKC_unit_test.out
142+
143+
- name: Print backtrace
144+
if: ${{ failure() && hashFiles('unit_test/burn_cell/Backtrace.0') != '' }}
145+
run: cat unit_test/burn_cell/Backtrace.0

.github/workflows/burn_cell_primordial_chem.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232
run: |
3333
cd unit_test/burn_cell_primordial_chem
3434
make -j 2
35-
./main1d.gnu.DEBUG.ex inputs_primordial_chem > test.out
35+
./main1d.gnu.DEBUG.ex inputs_primordial_chem amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
36+
37+
- name: Print backtrace
38+
if: ${{ failure() && hashFiles('unit_test/burn_cell_primordial_chem/Backtrace.0') != '' }}
39+
run: cat unit_test/burn_cell_primordial_chem/Backtrace.0
3640

3741
- name: Compare to stored output
3842
run: |

.github/workflows/burn_cell_sdc.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Run burn_cell_sdc (aprox19)
3636
run: |
3737
cd unit_test/burn_cell_sdc
38-
./main3d.gnu.ex inputs_aprox19.ci
38+
./main3d.gnu.ex inputs_aprox19.ci amrex.fpe_trap_{invalid,zero,overflow}=1
3939
4040
- name: Compare to stored output (aprox19)
4141
run: |
@@ -51,7 +51,7 @@ jobs:
5151
- name: Run burn_cell_sdc (BackwardEuler, aprox19)
5252
run: |
5353
cd unit_test/burn_cell_sdc
54-
./main3d.gnu.ex inputs_aprox19.ci
54+
./main3d.gnu.ex inputs_aprox19.ci amrex.fpe_trap_{invalid,zero,overflow}=1
5555
5656
- name: Compare to stored output (BackwardEuler, aprox19)
5757
run: |
@@ -67,10 +67,13 @@ jobs:
6767
- name: Run burn_cell_sdc (RKC, aprox19)
6868
run: |
6969
cd unit_test/burn_cell_sdc
70-
./main3d.gnu.ex inputs_aprox19.ci
70+
./main3d.gnu.ex inputs_aprox19.ci amrex.fpe_trap_{invalid,zero,overflow}=1
7171
7272
- name: Compare to stored output (RKC, aprox19)
7373
run: |
7474
cd unit_test/burn_cell_sdc
7575
diff state_over_time.txt ci-benchmarks/aprox19_RKC_state_over_time.txt
7676
77+
- name: Print backtrace
78+
if: ${{ failure() && hashFiles('unit_test/burn_cell_sdc/Backtrace.0') != '' }}
79+
run: cat unit_test/burn_cell_sdc/Backtrace.0

.github/workflows/eos_cell.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Run eos_cell (helmholtz)
3636
run: |
3737
cd unit_test/eos_cell
38-
./main3d.gnu.ex inputs_eos > test.out
38+
./main3d.gnu.ex inputs_eos amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
3939
4040
- name: Compare to stored output (helmholtz)
4141
run: |
@@ -51,11 +51,13 @@ jobs:
5151
- name: Run eos_cell (gamma_law)
5252
run: |
5353
cd unit_test/eos_cell
54-
./main3d.gnu.ex inputs_eos > test.out
54+
./main3d.gnu.ex inputs_eos amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
5555
5656
- name: Compare to stored output (gamma_law)
5757
run: |
5858
cd unit_test/eos_cell
5959
diff -I "^Initializing AMReX" -I "^AMReX" test.out ci-benchmarks/eos_gamma_law.out
6060
61-
61+
- name: Print backtrace
62+
if: ${{ failure() && hashFiles('unit_test/eos_cell/Backtrace.0') != '' }}
63+
run: cat unit_test/eos_cell/Backtrace.0

.github/workflows/nse_net.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
- name: Run test_ase (NSE_NET, ase)
3636
run: |
3737
cd unit_test/test_ase
38-
./main3d.gnu.ex inputs_ase > test.out
38+
./main3d.gnu.ex inputs_ase amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
39+
40+
- name: Print backtrace
41+
if: ${{ failure() && hashFiles('unit_test/test_ase/Backtrace.0') != '' }}
42+
run: cat unit_test/test_ase/Backtrace.0
3943

4044
- name: Compare to stored output (NSE_NET, ase)
4145
run: |
@@ -51,7 +55,11 @@ jobs:
5155
- name: Run, test_ase/make_table (NSE_NET, ase, make_table)
5256
run: |
5357
cd unit_test/test_ase/make_table
54-
./main3d.gnu.ex > test.out
58+
./main3d.gnu.ex amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
59+
60+
- name: Print backtrace
61+
if: ${{ failure() && hashFiles('unit_test/test_ase/make_table/Backtrace.0') != '' }}
62+
run: cat unit_test/test_ase/make_table/Backtrace.0
5563

5664
- name: Compare to stored output (NSE_NET, ase, make_table)
5765
run: |

.github/workflows/nse_table.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
- name: Run burn_cell (NSE, aprox19)
3636
run: |
3737
cd unit_test/burn_cell
38-
./main3d.gnu.ex inputs_aprox19.nse > test.out
38+
./main3d.gnu.ex inputs_aprox19.nse amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
39+
40+
- name: Print backtrace
41+
if: ${{ failure() && hashFiles('unit_test/burn_cell/Backtrace.0') != '' }}
42+
run: cat unit_test/burn_cell/Backtrace.0
3943

4044
- name: Compare to stored output (NSE, aprox19)
4145
run: |

.github/workflows/nse_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
- name: Run test_nse (aprox21)
3636
run: |
3737
cd unit_test/test_nse
38-
./main3d.gnu.ex inputs_aprox21 > test.out
38+
./main3d.gnu.ex inputs_aprox21 amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
39+
40+
- name: Print backtrace
41+
if: ${{ failure() && hashFiles('unit_test/test_nse/Backtrace.0') != '' }}
42+
run: cat unit_test/test_nse/Backtrace.0
3943

4044
- name: Compare to stored output (aprox21)
4145
run: |

.github/workflows/test_neutrinos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ jobs:
4040
- name: Run test_neutrino_cooling
4141
run: |
4242
cd unit_test/test_neutrino_cooling
43-
./main3d.gnu.ex inputs
43+
./main3d.gnu.ex inputs amrex.fpe_trap_{invalid,zero,overflow}=1
4444
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex test_sneut5 > test.out
4545
46+
- name: Print backtrace
47+
if: ${{ failure() && hashFiles('unit_test/test_neutrino_cooling/Backtrace.0') != '' }}
48+
run: cat unit_test/test_neutrino_cooling/Backtrace.0
49+
4650
- name: Compare to stored output
4751
run: |
4852
cd unit_test/test_neutrino_cooling

.github/workflows/test_nse_interp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
- name: Run test_nse_interp (NSE, aprox19)
3636
run: |
3737
cd unit_test/test_nse_interp
38-
./main3d.gnu.ex > test.out
38+
./main3d.gnu.ex amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
39+
40+
- name: Print backtrace
41+
if: ${{ failure() && hashFiles('unit_test/test_nse_interp/Backtrace.0') != '' }}
42+
run: cat unit_test/test_nse_interp/Backtrace.0
3943

4044
- name: Compare to stored output (NSE, aprox19)
4145
run: |

.github/workflows/test_rhs.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Run test_rhs (VODE, ignition_simple)
4141
run: |
4242
cd unit_test/test_rhs
43-
./main3d.gnu.ex inputs_ignition_simple
43+
./main3d.gnu.ex inputs_ignition_simple amrex.fpe_trap_{invalid,zero,overflow}=1
4444
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_ignition_simple_test_rhs.VODE > test.out
4545
4646
- name: Compare to stored output (VODE, ignition_simple)
@@ -57,7 +57,7 @@ jobs:
5757
- name: Run test_rhs (VODE, ignition_chamulak)
5858
run: |
5959
cd unit_test/test_rhs
60-
./main3d.gnu.ex inputs_chamulak
60+
./main3d.gnu.ex inputs_chamulak amrex.fpe_trap_{invalid,zero,overflow}=1
6161
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_chamulak_test_rhs.VODE > test.out
6262
6363
- name: Compare to stored output (VODE, ignition_chamulak)
@@ -74,7 +74,7 @@ jobs:
7474
- name: Run test_rhs (VODE, iso7)
7575
run: |
7676
cd unit_test/test_rhs
77-
./main3d.gnu.ex inputs_iso7
77+
./main3d.gnu.ex inputs_iso7 amrex.fpe_trap_{invalid,zero,overflow}=1
7878
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_iso7_test_rhs.VODE > test.out
7979
8080
- name: Compare to stored output (VODE, iso7)
@@ -91,7 +91,7 @@ jobs:
9191
- name: Run test_rhs (VODE, aprox13)
9292
run: |
9393
cd unit_test/test_rhs
94-
./main3d.gnu.ex inputs_aprox13
94+
./main3d.gnu.ex inputs_aprox13 amrex.fpe_trap_{invalid,zero,overflow}=1
9595
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_aprox13_test_rhs.VODE > test.out
9696
9797
- name: Compare to stored output (VODE, aprox13)
@@ -108,7 +108,7 @@ jobs:
108108
- name: Run test_rhs (VODE, aprox19)
109109
run: |
110110
cd unit_test/test_rhs
111-
./main3d.gnu.ex inputs_aprox19
111+
./main3d.gnu.ex inputs_aprox19 amrex.fpe_trap_{invalid,zero,overflow}=1
112112
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_aprox19_test_rhs.VODE > test.out
113113
114114
- name: Compare to stored output (VODE, aprox19)
@@ -125,7 +125,7 @@ jobs:
125125
- name: Run test_rhs (VODE, aprox21)
126126
run: |
127127
cd unit_test/test_rhs
128-
./main3d.gnu.ex inputs_aprox21
128+
./main3d.gnu.ex inputs_aprox21 amrex.fpe_trap_{invalid,zero,overflow}=1
129129
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_aprox21_test_rhs.VODE > test.out
130130
131131
- name: Compare to stored output (VODE, aprox21)
@@ -142,7 +142,7 @@ jobs:
142142
- name: Run test_rhs (VODE, rprox)
143143
run: |
144144
cd unit_test/test_rhs
145-
./main3d.gnu.ex inputs_rprox
145+
./main3d.gnu.ex inputs_rprox amrex.fpe_trap_{invalid,zero,overflow}=1
146146
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_rprox_test_rhs.VODE > test.out
147147
148148
- name: Compare to stored output (VODE, rprox)
@@ -159,7 +159,7 @@ jobs:
159159
- name: Run test_rhs (VODE, powerlaw)
160160
run: |
161161
cd unit_test/test_rhs
162-
./main3d.gnu.ex inputs_powerlaw
162+
./main3d.gnu.ex inputs_powerlaw amrex.fpe_trap_{invalid,zero,overflow}=1
163163
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_powerlaw_test_rhs.VODE > test.out
164164
165165
- name: Compare to stored output (VODE, powerlaw)
@@ -176,7 +176,7 @@ jobs:
176176
- name: Run test_rhs (VODE, triple_alpha_plus_cago)
177177
run: |
178178
cd unit_test/test_rhs
179-
./main3d.gnu.ex inputs_triple_alpha_plus_cago
179+
./main3d.gnu.ex inputs_triple_alpha_plus_cago amrex.fpe_trap_{invalid,zero,overflow}=1
180180
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_triple_alpha_plus_cago_test_rhs.VODE > test.out
181181
182182
- name: Compare to stored output (VODE, triple_alpha_plus_cago)
@@ -193,10 +193,14 @@ jobs:
193193
- name: Run test_rhs (VODE, ECSN)
194194
run: |
195195
cd unit_test/test_rhs
196-
./main3d.gnu.ex inputs_ecsn
196+
./main3d.gnu.ex inputs_ecsn amrex.fpe_trap_{invalid,zero,overflow}=1
197197
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_ecsn_test_rhs.VODE > test.out
198198
199199
- name: Compare to stored output (VODE, ECSN)
200200
run: |
201201
cd unit_test/test_rhs
202202
diff test.out ci-benchmarks/ecsn.out
203+
204+
- name: Print backtrace
205+
if: ${{ failure() && hashFiles('unit_test/test_rhs/Backtrace.0') != '' }}
206+
run: cat unit_test/test_rhs/Backtrace.0

0 commit comments

Comments
 (0)