I found a bug in an OpenMP-Fortran-program: There were some missing private-Options of OpenMP-Loops. Example:
!$OMP PARALLEL DO DO I=1,100 f = MyArray(I) ! f is not declared private ... END DO
The OpenAcc-compiler from PGI gives an message in a case like this.
For now we rely on thoroughly codeinspections to find these bugs in OpenMP-programs.
Is there any kind of code-analysis-tool, lint or a compiler-switch which helps to find bugs like this?