|
1 | | -# PAPI Gaudi2 Component |
| 1 | +# Gaudi2 Component |
2 | 2 |
|
3 | | -This PAPI component provides access to hardware performance counters on Intel Gaudi2 AI Accelerators through the SPMU interface. |
| 3 | +The `gaudi2` component provides access to hardware performance counters on Intel Gaudi2 AI Accelerators through the SPMU interface. |
4 | 4 |
|
5 | | -## Overview |
| 5 | +- [Environment Variables](#environment-variables) |
| 6 | +- [Enabling the Gaudi2 Component](#enabling-the-gaudi2-component) |
6 | 7 |
|
7 | | -The Gaudi2 component enables monitoring of: |
8 | | -- **TPC (Tensor Processing Core)** - 24 TPCs across 4 DCOREs |
9 | | -- **EDMA (External DMA)** - 8 EDMAs for data movement |
10 | | -- **PDMA (PCIe DMA)** - 2 PDMAs for host-device transfers |
11 | | -- **MME (Matrix Multiplication Engine)** - 4 MMEs for matrix operations |
| 8 | +## Environment Variables |
| 9 | +The `gaudi2` component requires setting the `PAPI_GAUDI2_ROOT` environment variable to habanalabs installed directory for `hl-thunk` headers and libraries. |
12 | 10 |
|
13 | | -Each SPMU unit supports up to 6 programmable counters that can be configured to count various hardware events. |
| 11 | +```bash |
| 12 | +export PAPI_GAUDI2_ROOT=/usr` |
| 13 | +``` |
14 | 14 |
|
15 | | -## Requirements |
| 15 | +## Enabling the Gaudi2 Component |
16 | 16 |
|
17 | | -- **Hardware**: Intel Gaudi2 AI Accelerator |
18 | | -- **Software**: |
19 | | - - Habana Labs driver and runtime |
20 | | - - libhl-thunk.so (Habana thunk library) |
21 | | - - Access to `/dev/accel/accel*` devices |
22 | | -- **Permissions**: User must have read/write access to accelerator devices |
| 17 | +To enable the `gaudi2` component, configure and build PAPI with the component enabled as follows: |
23 | 18 |
|
24 | | -## Building |
25 | | - |
26 | | -Set the `PAPI_GAUDI2_ROOT` environment variable to habanalabs installed directory for `hl-thunk` headers and libraries. |
27 | | -`export PAPI_GAUDI2_ROOT=/usr` |
28 | | - |
29 | | -Configure the component using: |
30 | | -`./configure --with-components="gaudi2"` |
31 | | - |
32 | | -then build with: |
33 | | -`make && make install` |
| 19 | +```bash |
| 20 | +./configure --with-components="gaudi2" |
| 21 | +make && make install |
| 22 | +``` |
0 commit comments