GNU compiler issue - IEEE_DIVIDE_BY_ZERO IEEE_UNDERFLOW_FLAG #980
Replies: 4 comments 28 replies
-
I haven't come across this before. You can set compiler flags in the |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response @rtownson. I attempted to add the flag mentioned above to my |
Beta Was this translation helpful? Give feedback.
-
Just taking a step back to basics, it's been a long time since I've looked at the gcc quirks on macs. Could you try recompiling with -mcmodel=large as an optimization argument and see what that changes? I did a lot of work to make sure that EGS could routinely handle 1e9 histories and I thought we had this licked |
Beta Was this translation helpful? Give feedback.
-
Hi @crcrewso, Thanks for taking a look at this. I tried re-compiling my BEAMnrc accelerator after adding I now get a ton of errors when trying to compile my accelerator, all saying Does this tell you anything? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am seeking advice on how to deal with what seems to be a GNU compiler issue.
Every time I run a simulation with significant amount of histories (>1e6) the simulation breaks and reporting the following:
Note: The following floating-point exceptions are signalling: IEEE_DIVIDE_BY_ZERO IEEE_UNDERFLOW_FLAG
I have had a look around for records of similar errors and on the thread firemodels/fds#5638 it is suggested to add a flag of
-ffpe-trap=invalid,zero,overflow -ffpe-summary=none
at compilation. However, I am unsure how to implement this with an already configured EGSnrc system.Has anyone else ran into this issue with EGSnrc simulations and may know how to overcome it? I would hope to maybe add the flag mentioned above to compilation of one of my BEAMnrc accelerators but also not quite sure how to do exactly that.
Any help or advice is appreciated.
Thanks :D
Beta Was this translation helpful? Give feedback.
All reactions