I have a strange (to me) problem.
In a big project, with OpenMP enabled by default.
In this project, I have 2 modules: A and B, where module A uses module B.
Module B do not have any OpenMP directive, nor Auto-parallelism is enabled.
Inside Module A, the subroutines that calls Module B also do not have any OpenMP directive, nor do have any of the calling subroutines.
When I compile the code, and disable OpenMP, OR disable Optimizations, OR disable both, only for the ModuleB, everything goes fine.
If I compile the ModuleB with both Optimization (/O2 or /O3) and OpenMP, the run craches after sometime with a floatpoint overflow.
Could you guide me to what kind of tests I should do in order to find the problem?
I'm using the latest Intel fortran.