Skip to content
Snippets Groups Projects
intel-inspector.md 1.89 KiB
Newer Older
  • Learn to ignore specific revisions
  • Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    # Intel Inspector
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Intel Inspector is a dynamic memory and threading error-checking tool for C/C++/Fortran applications. It can detect issues such as memory leaks, invalid memory references, uninitialized variables, race conditions, deadlocks, etc.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ## Installed Versions
    
    
    For the current list of installed versions, use:
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    ```console
    $ ml av Inspector
    ```
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ## Usage
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Your program should be compiled with the `-g` switch to include symbol names. Optimizations can be turned on.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    Debugging is possible either directly from the GUI, or from command line.
    
    ### GUI Mode
    
    To debug from GUI, launch Inspector:
    
    ```console
    $ inspxe-gui &
    ```
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Then select the *File -> New -> Project* menu. Choose a directory to which the project data is saved. After clicking OK, the *Project properties* window appears, where you can configure the path to your binary, launch arguments, working directory, etc. After clicking OK, the project is ready.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    In the main pane, you can start a predefined analysis type or define your own. Click *Start* to start the analysis. Alternatively, you can click on *Command Line*, to see the command line required to run the analysis directly from the command line.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ### Batch Mode
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Analysis can be also run from the command line in batch mode. Batch mode analysis is run with the `inspxe-cl` command. To obtain the required parameters, consult the documentation or configure the analysis in the GUI and then click the *Command Line* button in the lower right corner to the respective command line.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Results obtained from batch mode can be then viewed in the GUI by selecting *File -> Open -> Result...*.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ## References
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    1. [Product page][a]
    1. [Documentation and Release Notes][b]
    1. [Tutorials][c]
    
    [a]: https://software.intel.com/en-us/intel-inspector-xe
    [b]: https://software.intel.com/en-us/intel-inspector-xe-support/documentation
    [c]: https://software.intel.com/en-us/articles/inspectorxe-tutorials