-
Notifications
You must be signed in to change notification settings - Fork 703
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
incorrect results for OpenFOAM v10 + v11 when built with GCC 11.3.0 or 12.3.0 and -ftree-vectorize
#20927
Comments
The incorrect results when using -ftree-vectorize are noticeable when using strict solver tolerances. |
Is the issue specific to 11.3.0 and 12.3.0 only or does it also happen with earlier/later versions of GCC? |
Problem doesn't appear with OpenFOAM easyconfigs using a toolchain older than |
Related, same(?) or at least very similar tree-vectorizer issue: #15495 The actual issue here is that OpenFOAM doesn't have a robust test suite that is desperately needs. |
@nicolasdlss Can you provide some clear instructions on how to reproduce the problem, and what to look out for? @Micket Since we already disable |
This is a fast-running test (order of 1 minute) with an numerical outcome that can be easily used for comparison. |
Re-opening this, I would really like to have some kind of sanity check in place for this, so we don't re-introduce this problem again in the future. @nicolasdlss How feasible would it be to leverage a tutorial case that is included with OpenFOAM for this? We could also look into integrating your minimal test case as a sanity check of course, but that's a bit messier since it involves external input files, etc. |
After hearing about the issue in the EasyBuild conference call of July 17 2024 I checked the setup on LUMI to see if we are also affected. It turns out that by default OpenFOAM with the GNU compilers will use It might be a good idea (and for more packages actually) to try to check which compiler options developers use, and if they have a reasonable level of optimization, simply configure the |
Trying to mimic their defaults is just praying that it just happens to work without testing, This will almost certainly just randomly occur whenever someone decides to try a different compiler, version, CPU architecture. |
We got a report that installations of OpenFOAM (
OpenFOAM-10-foss-2022a.eb
,OpenFOAM-10-foss-2023a.eb
,OpenFOAM-11-foss-2023a.eb
) produce incorrect results, see also https://bugs.openfoam.org/view.php?id=4076 .After a lot of digging, we figured out that this problem is caused by a compiler bug: if these easyconfigs are changed to avoid the use of the
-ftree-vectorize
compiler option, the problem is resolved:The text was updated successfully, but these errors were encountered: