Code gets wrong answers in 19.x worked in 18.x


This post is for a record of a current OpenMP bug that I have discussed through direct e-mail.
I thought it would be a good idea to have it on the forum in case anyone else has the same issue and to keep an update on it.

My OpenMP code gets very wrong answers when I use any PGI 19.x compiler, but it works correctly with 18.x compilers.

A workaround for the issue is to use:


when compiling the code.

With this flag, the code works correctly again.

I have sent a reproducer to PGI (Mat).

I have tested the new 19.10 version and this issue is still there.
I have been told nvomp will be the default in the 20-series versions but as for now this bug still exists and we have to use the nvomp flag.

  • Ron