Strumenti Utente

Strumenti Sito


calcoloscientifico:vtune

Questa è una vecchia versione del documento!


VTune

VTune is a performance profiler from Intel and is available on the HPC cluster.

General information of Intel : https://software.intel.com/en-us/get-started-with-vtune-linux-os

The VTUne commands have prefix amplxe- *. The most important are:

  • amplxe-cl #< launches VTune Command Line.
  • amplxe-gui #< launches VTune with a graphical interface.

Profiling steps:

  • Data collection (collect)
  • Analysis of the results

Collect

To collect profiling data, run the executable via amplxe-cl, specifying an action between the following: https://software.intel.com/en-us/vtune-amplifier-help-amplxe-cl-actions

The action necessary to collect data about performance iscollect. This action requires an option to specify the type of analysis, including:

  • hotspots: Identify your most time-consuming source code.
  • concurrency: Analyze how your application is using available logical CPU cores, discover where parallelism is incurring synchronization overhead, and identify potential candidates for parallelization.
  • hpc-performance: Identify opportunities to optimize CPU, memory, and FPU utilization for compute-intensive or throughput applications.
  • memory-access: Measure a set of metrics to identify memory access related issues (for example, specific for NUMA architectures).

Command example:

amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication

Result analysis

The off-line analysis of the collected data can be done in a graphical way with amplxe-gui:

 amplxe-gui <dirname>

HPC (UNIPR)

Connettersi a gui.hpc.unipr.it ed eseguire un job interattivo; ad esempio:

 qsub -I -l select=1:cluster=knl:ncpus=68
 
 > module load intel # (include anche vtune)
 > amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication
 > exit

Sul cluster HPC di Ateneo e' preferibile lanciare amplxe-gui da gui.hpc.unipr.it:

  
module load intel 
amplxe-gui  <dirname>

MARCONI (CINECA)

Su Marconi si puo' sottomettere una sessione interattiva, in cui eseguire sia la collect che la data analysis (amplxe-gui non funziona sulla macchina di login), come ad esempio:

srun -N1 -n68 -t 00:30:00  -A <account> -p knl_usr_dbg --pty bash

> module load intel vtune
> amplxe-cl  -collect hpc-performance -result-dir myresults bin/myexe <options>
> amplxe-gui  myresults
> exit

Debug Info

Per includere informazioni di debug nei risultati (ad esempio il codice sorgente) occorre compilare con l'opzione

   -gdwarf-2 
calcoloscientifico/vtune.1525506402.txt.gz · Ultima modifica: 05/05/2018 09:46 da paolo.oggiano