EGSnrc icon indicating copy to clipboard operation
EGSnrc copied to clipboard

Using IPSS Only in Windows Causes egs_chamber to crash

Open vahx129 opened this issue 6 years ago • 4 comments

When running simulations that make use of IPSS, egs_chamber (the latest EGSnrc-feature-dynamic-source in this case but also observed in EGS_2016 and EGS_2017 releases), the simulation will crash if correlated sampling is also not enabled.

This issue is specific to Windows in my experience since it doesn't affect our Linux parallel computing cluster.

I've seen this in my chamber model input files but also created a very simple situation to reproduce the issue. A scoring sphere inside of a slightly larger sphere with a point source of electrons hitting the geometry. This simple input still causes egs_chamber to crash if ONLY IPSS is enabled. Once again, enabling correlated sampling (CS) will cause the simulation to run as it should but in situations where only IPSS is desired with no CS, the simulations seem to crash on windows.

Remaking both egs++ and egs_chamber with optimization OFF and disabling the ffast-math flag in the Windows .conf file did not resolve the issue.

IPSS_Crasher.zip

vahx129 avatar Apr 29 '18 16:04 vahx129

Similar behaviour was reported here by one of my collaborators: https://plus.google.com/112946223991473184526/posts/YeanRdGkSYA but we never really found any solution (or the solution for him was to start using Linux only :) )

ojalaj avatar Apr 29 '18 20:04 ojalaj

Thank you for the link! I knew I saw something similar somewhere. I guess my only contribution was to mention that enabling correlated sampling also seems to fix the issue.

vahx129 avatar Apr 30 '18 03:04 vahx129

@vahx129 can you confirm whether this is still an issue on Windows?

ftessier avatar Apr 21 '21 19:04 ftessier

Let me check in the next week or so as I'm traveling but I'll definitely let you know!

vahx129 avatar Apr 21 '21 19:04 vahx129