Quantcast
Channel: C#
Viewing all articles
Browse latest Browse all 1853

Command Line and MPI

$
0
0

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.

Chosen Platform and Tool/Feature

Choose Vectorization Advisor-Linux* OS  Choose Vectorization Advisor-Windows* OS  Choose Threading Advisor-Linux* OS  Choose Threading Advisor-Windows* OS  You chose CLI & MPI  Choose Documentation & Resources

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.

Linux* OS:

  • 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/

Windows* OS:

  • 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

advixe-cl -help

Note

You can also check the Intel Advisor Help document.

Run a Survey analysis.

Vectorization Advisor & Threading Advisor

Linux* OS: advixe-cl -collect survey –project-dir ./myAdvisorProj -- myTargetApplication

Windows* OS: advixe-cl -collect survey -project-dir myAdvisorProj -- myTargetApplication

Run a Trip Counts analysis.

Vectorization Advisor & Threading Advisor

Linux* OS: advixe-cl -collect tripcounts –project-dir ./myAdvisorProj -- myTargetApplication

Windows* OS: advixe-cl -collect tripcounts -project-dir myAdvisorProj -- myTargetApplication

Print a Survey Report to identify loop IDs for Refinement analyses.

Vectorization Advisor

Linux* OS: advixe-cl -report survey –project-dir ./myAdvisorProj

Windows* OS: advixe-cl -report survey -project-dir myAdvisorProj

Run a Refinement analysis.

Vectorization Advisor

Linux* OS: advixe-cl -collect [dependencies | map] -mark-up-list=[loopID],[loopID] –project-dir ./myAdvisorProj -- myTargetApplication

Windows* OS: advixe-cl -collect [dependencies | map] -mark-up-list=[loopID],[loopID] -project-dir myAdvisorProj -- myTargetApplication

Run a Dependencies analysis.

Threading Advisor

Linux* OS: advixe-cl -collect dependencies -project-dir ./myAdvisorProj  -- myTargetApplicaton

Windows* OS: advixe-cl -collect dependencies -project-dir myAdvisorProj -- myTargetApplicaton

Report a top-down functions list instead of a loop list.

Vectorization Advisor & Threading Advisor

advixe-cl -report survey -top-down -display-callstack

Report all compiler opt-report and vec-report metrics.

Vectorization Advisor

advixe-cl -report survey -show-all-columns

Report the top five self-time hotspots that were not vectorized because of a not inner loop msg id.

Vectorization Advisor

advixe-cl -report survey -limit 5 -filter "Vectorization Message(s)"="loop was not vectorized: not inner loop"

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: $ mpirun -n 10 advixe-cl -collect survey --project-dir ./my_proj ./your_app

Windows* OS: $ mpirun -n 10 advixe-cl -collect survey --project-dir my_proj your_app

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: $ mpirun -n 1 advixe-cl -collect survey --project-dir ./my_proj ./your_app : -np 9 ./your_app

Windows* OS: $ mpirun -n 10 advixe-cl -collect survey --project-dir my_proj your_app


Viewing all articles
Browse latest Browse all 1853

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>