Intel® Advisor XE 2016 offers a vectorization analysis tool and a threading design and prototyping tool to help ensure your Fortran and native/managed C++ applications take full performance advantage of today’s processors. This topic discusses getting started with the Intel Advisor CLI and MPI.
Command Line
You can use the Intel Advisor command line interface, advixe-cl, to run analyses and reports. This makes it possible to automate many tasks as well as analyze an application running on remote hosts. You can then view results using the Intel Advisor GUI or command line reports.
Before running advixe-cl, do one of the following to set up your environment.
Run one of the following source commands:
For csh/tcsh users: source <advisor-install-dir>/advixe-vars.csh
For bash users: source <advisor-install-dir>/advixe-vars.sh
The default installation path, <advisor-install-dir>:
For root users: /opt/intel/parallel_studio_xe_201n/advisor_xe_201n/
For non-root users: $HOME/intel/parallel_studio_xe_201n/advisor_xe_201n/
Add <advisor-install-dir>/bin32 or <advisor-install-dir>/bin64 to your path.
Run the <parallel-studio-install-dir>/ipsxevars.csh or <parallel-studio-install-dir>/ipsxevars.sh command. The default installation path, <parallel-studio-install-dir>:
For root users: /opt/intel/parallel_studio_xe_201n/
For non-root users: $HOME/intel/parallel_studio_xe_201n/
Run the <advisor-install-dir>\advixe-vars.bat command.
The default installation path, <advisor-install-dir>, is C:\Program Files (x86)\IntelSWTools\Advisor XE 201n\ (on certain systems, instead of Program Files (x86), the directory name is Program Files ).
Run the <parallel-studio-install-dir>\ipsxe-vars.cmd command.
The default installation path, <parallel-studio-install-dir>, is C:\Program Files (x86)\IntelSWTools.<update number>.<package number>\.
Below are command line examples of typical Intel Advisor tasks.
To Do This | Tool Applicability | Use This Command Line Model |
---|---|---|
View a full list of command line options. | Vectorization Advisor & Threading Advisor |
NoteYou can also check the Intel Advisor Help document. |
Run a Survey analysis. | Vectorization Advisor & Threading Advisor | Linux* OS: Windows* OS: |
Run a Trip Counts analysis. | Vectorization Advisor & Threading Advisor | Linux* OS: Windows* OS: |
Print a Survey Report to identify loop IDs for Refinement analyses. | Vectorization Advisor | Linux* OS: Windows* OS: |
Run a Refinement analysis. | Vectorization Advisor | Linux* OS: Windows* OS: |
Run a Dependencies analysis. | Threading Advisor | Linux* OS: Windows* OS: |
Report a top-down functions list instead of a loop list. | Vectorization Advisor & Threading Advisor |
|
Report all compiler opt-report and vec-report metrics. | Vectorization Advisor |
|
Report the top five self-time hotspots that were not vectorized because of a not inner loop msg id. | Vectorization Advisor |
|
Tip
Click the appropriate Command Line control in the WORKFLOW to generate the corresponding collection command line.
MPI
You can perform an MPI analysis only through the Intel Advisor command line interface; however, there are several ways to view an Intel Advisor result:
If you have an Intel Advisor GUI in your cluster environment, open a result in the GUI.
If you do not have an Intel Advisor GUI on your cluster node, copy the result directory to another machine with the Intel Advisor GUI and open the result there.
Use the Intel Advisor command line reports to browse results on a cluster node.
Use mpirun, mpiexec, or your preferred MPI batch job manager with the advixe-cl command to start an analysis. You may also use the -gtool option of mpirun. See the Intel® MPI Library Reference Manual (available in the Intel® Software Documentation Library) for more information.
Below are command line examples of typical Intel Advisor MPI tasks.
To Do This | Use This Command Line Model |
---|---|
Run 10 MPI ranks (processes), and start an Intel Advisor analysis on each rank. | Linux* OS: Windows* OS: Intel Advisor creates a number of result directories in the current directory, named as rank.0, rank.1, ... rank.n, where n is the MPI process rank. Intel Advisor does not combine results from different ranks, so you must explore each rank result independently. |
Run 10 MPI ranks, and start an Intel Advisor analysis only on rank #1. | Linux* OS: Windows* OS: |