Tutorial

  • 2021.1
  • 12/04/2020
  • Public Content

Resolve Issue

Intel® Inspector
is a dynamic memory and threading error checking tool for users developing serial and multithreaded applications on Windows* and Linux* operating systems. This topic is part of a
tutorial
that shows how to find and fix
threading
errors using the
Intel Inspector
and a
Fortran
sample application.
To fix the detected threading error:

Investigate the Issue

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.

Access an Editor

Double-click near line 146 to open the
nqueens_threading.f90
source file in an editor.

Change the Source Code

  1. Uncomment
    !!$OMP ATOMIC
    .
  2. Save your edits.
  3. 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.
  4. Click the
    Summary
    button to redisplay the
    Summary
    window.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.