-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
egs++ very rare infinite loop detected #580
Comments
I found example where loop starts earlier (only 40mil egsAusgab calls) and may be better checked. Input egsinp file: Compiling options: I've also added several debug lines into
Debug info from egsAusgab, cycle starts after around 40mil calls: Unfortunately using different compile options or compiler leads to different random sequence. I'm also using compile option |
Thanks for taking the time to report this @karnigen! I will try to reproduce this bug at my end with the input your provided. |
I am having trouble reproducing this here (with your second input), as expected. Tried 3 cpus (all Intel though), flags here are In the mean time @karnigen can you try to adjust your geometry input so that the z_dose planes inserted inside the cd geometry are "bleeding" over the evelope, as in put the first one say at -0.1, and the last one at 62.1 (and then the same thing for the EGSnrc is very finicky with floating-point precision issues, and one must avoid all overlapping surfaces. Typically this leads to particles being stuck at the interface, and infinite looping such as what you observe. Let me know if that resolves the problem! |
I ran 3e9 histories on 256 processors with your second input, and all simulations completed as expected. This is most likely due a rare geometry floating point error. Try offsetting the geometry planes and let me know. |
@karnigen The difference between @karnigen and @ftessier is -O3 vs -O2 and -march=native vs -mtune=native. |
Oh, I had misread the second message:
(I read that the problem did still occur with the default flags). We have had issues in the past with the |
It seems like bug but I don't know where the problem actually is. Looping is in egs_shower and in egs_ausgab x vector has position given next, which never changes
E=0.010000000000000002 x=-0.35750032602018411 y=-3.9060383952088462 z=39.965866508062611
Looping start within 3 minutes from start, see log file.
'fflags': '"-fPIC -v -g"', 'oflags': '"-O3 -march=native"', 'cflags': '"-O3 -march=native -fPIC -v -g"', 'cpp': '"-O3 -march=native -ffast-math -v -g"'
Application:
#include "egs_advanced_application.h"
APP_MAIN (EGS_AdvancedApplication);
Input egsinp file:
xdavka3.egsinp.txt
Log from calculation:
xdavka3_wxx.egslog.txt
Some debug info:
xdavka3_debug.txt
The text was updated successfully, but these errors were encountered: