Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28945 Discussions

Use -qopenmp without openmp directive cause wrong result

Jsfaraway
Beginner
489 Views

Hi, my code will has a different result when use -qopenmp with ifort. But I haven't add any openmp parallel zone, it should just run as serial. What could cause this error? Any suggestion is appreciated, thank you!

compiler error: ifort 2021.4

0 Kudos
2 Replies
Barbara_P_Intel
Employee
407 Views

There is not enough information here to give any suggestions other that to try the current release of ifort. It's 2021.12.0. It was released a few weeks ago.

If you still have a problem, please post a small reproducer.

 

0 Kudos
Mark_Lewy
Valued Contributor I
383 Views

-qopenmp implies -auto.  If you have any code that relies on variables being implicitly saved that is likely to break if you use -qopenmp.

0 Kudos
Reply