Skip to content

Commit

Permalink
[fpe] in CODEGEN (backport from gq_ttq.mad), fix the SIGFPE crash for…
Browse files Browse the repository at this point in the history
… FPTYPE=f 512z builds (madgraph5#845) by adding 'volatile', again
  • Loading branch information
valassi committed Jun 28, 2024
1 parent d5a9d09 commit 8d700fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@
for( int icolC = 0; icolC < ncolor; icolC++ )
{
#if defined MGONGPU_CPPSIMD
const bool okcol = allrndcol[ievt] < ( targetamp[icolC][ieppV] / targetamp[ncolor - 1][ieppV] );
// Add volatile here to avoid SIGFPE crashes in FPTYPE=f cpp512z builds (#845)
volatile const bool okcol = allrndcol[ievt] < ( targetamp[icolC][ieppV] / targetamp[ncolor - 1][ieppV] );
#else
const bool okcol = allrndcol[ievt] < ( targetamp[icolC] / targetamp[ncolor - 1] );
#endif
Expand Down

0 comments on commit 8d700fd

Please sign in to comment.