Intel® Inspector Help
Follow these guidelines to build applications that produce the most accurate and complete Intel Inspector analysis results:
Ensure applications create more than one thread before you run threading analyses.
You can use the Intel® Inspector to analyze memory and threading errors in both debug and release modes of C++ and Fortran binaries; however, applications compiled/linked in debug mode using the following settings produce the most accurate and complete analysis results.
Compiler/Linker Property |
Correct C/C++ Setting |
Impact If Not Set Correctly |
---|---|---|
Debug information |
Enabled (-g) |
Missing file/line information |
Optimization |
Disabled (-O0) |
Incorrect file/line information |
Dynamic runtime library |
Selected (-shared-intel for Intel® compilers; default or -Bdynamic for GNU compilers) |
False positives or missing code locations |
Basic runtime error checks |
Disabled (do not use -fmudflap) |
False positives |
Compiler/Linker Property |
Correct Fortran Setting |
Impact If Not Set Correctly |
Debug information |
Enabled (-debug or -g) |
Missing file/line information |
Optimization |
Disabled (-O0) |
Incorrect file/line information |
Dynamic runtime library |
Selected (-shared-intel) |
False positives or missing code locations |
Basic runtime error checks |
None (-check:none) |
False positives |
To learn more about options necessary to produce the most accurate and complete analysis results, see the following resources:
Memory error analysis - http://software.intel.com/en-us/articles/compiler-settings-for-memory-error-analysis-in-intel-inspector-xe/
Threading error analysis - http://software.intel.com/en-us/articles/compiler-settings-for-threading-error-analysis-in-intel-inspector-xe/
If you plan to run threading error analyses on systems with only one processor, you may need to take special steps to ensure applications create more than one thread: