Tutorial: Analyzing Threading Errors with Intel® Inspector and a Fortran Sample
To fix the detected threading error:
Scroll to near line 146. The embedded commenting in the nqueens_threading.f90 sample file identifies how to fix the Data race problem: Uncomment the atomic on the nrOfSolutions variable.
Double-click near line 146 to open the
nqueens_threading.f90 source file in an editor:
Uncomment !!$OMP ATOMIC.
Save your edits.
Click the result tab to return to the Sources window.
The Sources window data is unchanged because it is a snapshot of the source code at the time of analysis.
Click the Summary button to display the Summary window.