Sample Applications and Tutorials

Intel Inspector offers several tools you can use as you learn, including:

About Sample Applications

Intel Inspector currently offers the following sample applications:

Sample Application

Summary

Default Installation Location

tachyon_insp_xe

Displays a rendering of a graphical image via 2D ray tracing.

Demonstrates: Detecting memory and threading errors in a C++ application.

Data conflicts: Memory leak, invalid memory access, mismatched memory allocation and deallocation, and data race.

Tip

Companion tutorials available.

Intel® 64 architecture: C:\Program Files (x86)\Intel\<Inspector>\samples\<locale>\C++\tachyon_insp_xe.zip

IA-32 architecture: C:\Program Files\Intel\<Inspector>\samples\<locale>\C++\tachyon_insp_xe.zip

FortranDemo_ssa

Scientific Graphs (SciGraph) graphing library

Demonstrates: Detecting possible security flaws and source code errors in a Fortran application.

Errors: Array arg shape mismatch, interface mismatch, uninitialized variable, and unreachable statement.

Tip

Companion tutorial available.

Intel 64 architecture: C:\Program Files (x86)\Intel\<Inspector>\samples\<locale>\Fortran\FortranDemo_ssa.zip

IA-32 architecture: C:\Program Files\Intel\<Inspector>\samples\<locale>\Fortran\FortranDemo_ssa.zip

tachyon_ssa

Displays a rendering of a graphical image via 2D ray tracing.

Demonstrates: Detecting possible security flaws and source code errors in a C++ application.

Errors: Uninitialized variables, bounds violation on string, unvalidated external data, and unreachable statement.

Tip

Companion tutorial available.

Intel 64 architecture: C:\Program Files (x86)\Intel\<Inspector>\samples\<locale>\C++\tachyon_ssa.zip

IA-32 architecture: C:\Program Files\Intel\<Inspector>\samples\<locale>\C++\tachyon_ssa.zip

banner

Displays an abcde banner on the command line.

Demonstrates: Detecting memory and threading errors in a C++ application.

Data conflicts: Memory leak, invalid memory access, and data race.

Intel 64 architecture: C:\Program Files (x86)\Intel\<Inspector>\samples\<locale>\C++\banner.zip

IA-32 architecture: C:\Program Files\Intel\<Inspector>\samples\<locale>\C++\banner.zip

nqueens_fortran

Solves the nqueens problem for various board sizes.

Demontrates: Detecting threading, memory, and static analysis problems in a Fortran application.

Data Conflicts: Data race, uninitialized memory access, memory leak, optional argument unchecked, unused subroutine, and unallocated array reference.

Intel 64 architecture: C:\Program Files (x86)\Intel\<Inspector>\samples\<locale>\Fortran\nqueens_fortran.zip

IA-32 architecture: C:\Program Files\Intel\<Inspector>\samples\<locale>\Fortran\nqueens_fortran.zip

parallel_nqueens_csharp

Computes the number of solutions to the nQueens problem for a given board size.

Demonstrates: Detecting threading errors in a C# application.

Data conflicts: Data race.

Intel 64 architecture: C:\Program Files (x86)\Intel\<Inspector>\samples\<locale>\C#\parallel_nqueens_csharp.zip

IA-32 architecture: C:\Program Files\Intel\<Inspector>\samples\<locale>\C#\parallel_nqueens_csharp.zip

After you copy a sample application compressed file to a writable directory, use a suitable tool to extract the contents. Extracted contents include a short README (TXT format) that describes how to build the sample and fix issues.

Note

  • Sample applications are non-deterministic.

  • Sample applications are designed only to illustrate the Intel Inspector features and do not represent best practices for creating code.

About Tutorials

Intel Inspector provides several tutorials that explain how to:

  • Find and fix memory errors in serial or parallel applications (dynamic analysis).

  • Find and fix threading errors in parallel applications (dynamic analysis).

  • Find and fix potential security weaknesses (static analysis).

You can access a tutorials index page a variety of ways. The default installation location for this page is:

  • C:\Program Files (x86)\Intel\<Inspector>\documentation\en\tutorials\index.htm for Intel 64 architecture

  • C:\Program Files\Intel\<Inspector>\documentation\en\tutorials\index.htm for IA-32 architecture


Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>\<studio>\documentation\ .

For more complete information about compiler optimizations, see our Optimization Notice.