Strumenti Utente

Strumenti Sito


calcoloscientifico:vtune

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
calcoloscientifico:vtune [05/03/2018 16:23]
roberto.alfieri [Collect]
calcoloscientifico:vtune [11/05/2018 10:34] (versione attuale)
paolo.oggiano [HPC (UNIPR)]
Linea 2: Linea 2:
 ===== VTune ===== ===== VTune =====
  
-VTune e' un perfomance profiler di Intel ed e' disponibile sul cluster HPC.+VTune is a performance profiler from Intel and is available on the HPC cluster.
  
-Informazioni generali di Intel : https://software.intel.com/en-us/get-started-with-vtune-linux-os+General information of Intel : https://software.intel.com/en-us/get-started-with-vtune-linux-os
  
-VTune ha sia un'iterfaccia grafica (GUI) che a linea di comando. Per utilizzare l'interfaccia grafica e' necessario connettersi a gui.hpc.unipr.it che , al momento, e' accessibile solo all'interno dell'Ateneo, quindi  dall'esterno occorre utilizzare la VPN.+The VTUne commands have prefix amplxe- *The most important are: 
  
-Sul cluster HPC per accedere a VTune e' necessario caricare il modulo Intel: +  * amplxe-cl  #< launches VTune Command Line. 
-   module load intel+  * amplxe-gui #< launches VTune with a graphical interface.
  
-I comandi VTUne hano prefisso amplxe-*. I piu' importanti sono+Profiling steps:
  
-  * amplxe-cl  # lancia VTune Command Line. +  * Data collection (collect)  
-  * amplxe-gui # lancia VTune con interfaccia grafica. +  * Analysis of the results
- +
-Fasi del profiling: +
- +
-  * Raccolta dati (collect)  +
-  * Analisi dei risultati  +
    
        
 ==== Collect ==== ==== Collect ====
  
-Per la raccolta dei dati di profiling occorre lanciare l'eseguibile tramite amplxe-cl, +To collect profiling data, run the executable via amplxe-cl, 
-specificando una action tra le seguenti: https://software.intel.com/en-us/vtune-amplifier-help-amplxe-cl-actions +specifying an action between the following: https://software.intel.com/en-us/vtune-amplifier-help-amplxe-cl-actions 
  
-L'action necessaria per raccogliere dati riguardo le performance e' **collect**. +The action necessary to collect data about performance is **collect**. 
-Questa action richiede una opzione per specificare il tipo di analisitra cui+This action requires an option to specify the type of analysisincluding
    * **hotspots**: Identify your most time-consuming source code.    * **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.    * **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-perfornance**: Identify opportunities to optimize CPU, memory, and FPU utilization for compute-intensive or throughput applications.+   * **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).    * **memory-access**: Measure a set of metrics to identify memory access related issues (for example, specific for NUMA architectures).
  
-Esempio di comando+Command example
   amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication   amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication
  
-=== Analisi dei risultati ===+=== Result analysis ===
  
-L'analisi off-line dei dati raccolti puo' essere fatta in modo grafico con amplxe-gui:+The off-line analysis of the collected data can be done in a graphical way with amplxe-gui:
  
    amplxe-gui <dirname>    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  -A <account> -p knl_usr_dbg --pty bash 
-   
-  > module load intel vtune 
-  > amplxe-cl  -collect hotspots -result-dir myresults bin/myexe <options> 
-  > amplxe-gui  myresults 
-  > exit 
  
  
Linea 59: Linea 44:
 ==== HPC (UNIPR) ==== ==== HPC (UNIPR) ====
  
-Connettersi a gui.hpc.unipr.it ed eseguire un job interattivoad esempio:  +Connect to gui.hpc.unipr.it and perform an interactive job; eg:  
-   qsub --l select=1:cluster=knl:ncpus=68+   srun -N1 -n68 -p knl --account=<account name>
        
-   > module load intel # (include anche vtune)+   > module load intel # (include vtune too)
    > amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication    > amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication
    > exit    > exit
      
-Lanciare amplxe-gui aa gui.hpc.unipr.it: +It is preferable to launch on the University HPC cluster amplxe-gui from gui.hpc.unipr.it: 
          
   module load intel    module load intel 
   amplxe-gui  <dirname>   amplxe-gui  <dirname>
      
 +  
 +=== MARCONI (CINECA)  ===
 +
 +On Marconi you can 'submit an interactive session, in which to perform both the collect and the data analysis (amplxe-gui does not work on the login machine), such as:
 +  srun -N1 -n68 -t 00:30:00  -A <account name> -p knl --pty bash
 +  
 +  > module load intel vtune
 +  > amplxe-cl  -collect hpc-performance -result-dir myresults bin/myexe <options>
 +  > amplxe-gui  myresults
 +  > exit
 +
 +
 +=== Debug Info ===
 +
 +To include debugging information in the results (for example the source code) you need to fill in with the option
 +
 +<code>
 +   -gdwarf-2 
 +</code>
 +
calcoloscientifico/vtune.1520263432.txt.gz · Ultima modifica: 05/03/2018 16:23 da roberto.alfieri