Intel Inspector

Version System A System B System C
Inspector XE 2021 (default) + +
Inspector XE 2020 + +
Inspector XE 2019 + +
Inspector XE 2018 + +

Key: + = Available for use, ― = Not available for use.

Version Modulefile Name
2021 iutils/xe2021
2020 iutils/xe2020
2019 iutils/xe2019
2018 iutils/xe2018

In the Intel compiler environment, execute the module command as shown below.

$ module load iutils

For details on the module command, see Modules.

Commands Purpose
inspxe-gui Activates Intel Inspector GUI.
inspxe-cl Activates Intel Inspector command-line version.

Options Purpose
-collect=string Specifies the analysis type.
-app-working-dir=string Specifies the working directory.
-r, -result-dir=string Specifies the directory in which to save the result.

Types Purpose
mi1 Detects memory leaks.
mi2 Detects memory leaks and other memory problems.
mi3 Detects the location of memory leaks and other memory problems.
ti1 Detects deadlocks.
ti2 Detects deadlocks and data races.
ti3 Detects the location of deadlocks and data races.

When using Intel Inspector, compile with the debugging option -g. For details on compile options, please also refer to the webpage here and here.

$ icc -g test.c

In the Exceed onDemand , Intel Inspector is activated when executing the inspxe-gui command. For details of xrun , see Interactive Processing.

$ xrun inspxe-gui

Select File > New > Project, the window below appears. Enter the appropriate Project name, then click Create Project.

The Project Properties window appears, specify the target program in the Application text box, then click OK. If an argument is required, specify it here.

The Configure Analysis Type window appears, select the target and then click Start.

The inspection results are displayed. The example below indicates that one memory leak is detected.

To view the result details like below, double-click the problem detected by inspection.

When using Intel Inspector, compile with the debugging option -g. For details on compile options, please also refer to the webpage here and here.

$ icc -g test.c

To use Intel Inspector CUI, use the inspxe-cl command. In this example, a working directory and a directory for outputting the results are specified before starting to inspect the location of memory leaks and other memory problems. For details of tssrun , see Interactive Processing.

$ tssrun inspxe-cl -collect=mi3 -app-working-dir=./work -r=./result $PWD/a.out
Used suppression file(s): []
1 new problem(s) found 
  1 Memory leak problem(s) detected

If problems are detected, execute the inspxe-gui command to view the problem details with Intel Inspector GUI in the X-Windows(GUI) environment(e.g., Exceed onDemand). For details of xrun , see Interactive Processing.

$ xrun inspxe-gui ./result/result.inspxe


Copyright © Academic Center for Computing and Media Studies, Kyoto University, All Rights Reserved.