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 revisioneRevisione precedente
Prossima revisione
Revisione precedente
calcoloscientifico:vtune [05/03/2018 19:00] – [Collect] roberto.alfiericalcoloscientifico:vtune [11/05/2018 10:34] (versione attuale) – [HPC (UNIPR)] paolo.oggiano
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
  
-I comandi VTUne hano prefisso amplxe-*. I piu' importanti sono+The VTUne commands have prefix amplxe- *. The most important are
  
-  * amplxe-cl lancia VTune Command Line. +  * amplxe-cl  #< launches VTune Command Line. 
-  * amplxe-gui # lancia VTune con interfaccia grafica.+  * amplxe-gui #< launches VTune with a graphical interface.
  
-Fasi del profiling:+Profiling steps:
  
-  * Raccolta dati (collect)  +  * Data collection (collect)  
-  * Analisi dei risultati  +  * Analysis of the results
    
        
 ==== 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.
Linea 29: Linea 29:
    * **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 -t 00:30:00  -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 54: 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
      
-Sul cluster HPC di Ateneo e' preferibile lanciare amplxe-gui da 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.1520272852.txt.gz · Ultima modifica: 05/03/2018 19:00 da roberto.alfieri

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki