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 11:40]
roberto.alfieri
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).
  
-=== Analisi dei risultati ===+Command example:  
 +  amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication
  
-L'analisi off-line dei dati raccolti puo' essere fatta in modo grafico con amplxe-gui.+=== Result analysis ===
  
-=== Esempio MARCONI ===+The off-line analysis of the collected data can be done in a graphical way with amplxe-gui:
  
 +   amplxe-gui <dirname>
  
  
  
-=== Esempio slurm === 
  
-<code> 
-module load intel  
  
-amplxe-cl -collect hotspots -result-dir dirname  home/test/myApplication +==== HPC (UNIPR) ====
-</code>+
  
 +Connect to gui.hpc.unipr.it and perform an interactive job; eg: 
 +   srun -N1 -n68 -p knl --account=<account name>
 +   
 +   > module load intel # (include vtune too)
 +   > amplxe-cl -collect hotspots -result-dir <dirname>  home/test/myApplication
 +   > exit
 +  
 +It is preferable to launch on the University HPC cluster amplxe-gui from gui.hpc.unipr.it: 
 +    
 +  module load intel 
 +  amplxe-gui  <dirname>
 +  
 +  
 +=== MARCONI (CINECA)  ===
  
-==== Esaminare le informazioni di profiling ====+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>
  
-Connettersi a gui.hpc.unipr.it  e attivare vtune in modalita' grafica. Esempio: 
-  module load intel  
-  amplxe-gui r001hpc.amplxe 
calcoloscientifico/vtune.1520246451.txt.gz · Ultima modifica: 05/03/2018 11:40 da roberto.alfieri