Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

A Bug Occur when I call a pure subroutine in OpenMP

$
0
0

1, The pure subroutine defined in a.f90, there is no OpenMP used here.

2, the OpenMP used in m.f90

when I compile the a.f90 like `ifort a.f90 -c -o a.f90` without -openmp

wrong result returned from the pure subroutine.

 

But, when I compile the a.f90 like `ifort -c -openmp -o a.f90`

correct result returned.

 

As I know, the pure subroutine is process safe. Why my subroutine return two kinds of results.

The a.f90 doesn't use OpenMP , why I shold compile it use -openmp


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>