code-saturne / code_saturne

code_saturne public mirror
https://www.code-saturne.org
GNU General Public License v2.0
215 stars 80 forks source link

Clang / GFortran breaks OpenMP #107

Closed paspro closed 1 year ago

paspro commented 1 year ago

If the user chooses the Clang compiler for C/C++ and the GFortran compiler for the Fortran code then the configuration script fails to enable the OpenMP option for the Fortran compiler and it enables it for the Clang compiler only.

YvanFournier commented 1 year ago

This is a feature, not a bug... To my knowledge, clang and gfortran use different OpenMP libraries, and mixing the 2 may be risky.

Since we are progressively migrating to C and there is very little OpenMP code left in the Fortran part, this should not be a significant performance issue (and we have a lot of work on the C side to increase the ration of OpenMP et serial sections if we are to get good performance at all).