Skip to content

Commit

Permalink
Add peak memory bw to XPlane to enable Roofline Analysis and Hlo Stats
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 695949288
  • Loading branch information
zzzaries authored and Google-ML-Automation committed Nov 13, 2024
1 parent 3750ac9 commit a0b99e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xla/tsl/profiler/utils/xplane_schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,14 @@ const StatTypeMap& GetStatTypeMap() {
{"compute_cap_minor", kDevCapComputeCapMinor},
{"peak_teraflops_per_second", kDevCapPeakTeraflopsPerSecond},
{"peak_hbm_bw_gigabytes_per_second", kDevCapPeakHbmBwGigabytesPerSecond},
{"peak_cmem_rd_bw_gigabytes_per_second",
kDevCapPeakCmemRdBwGigabytesPerSecond},
{"peak_cmem_wr_bw_gigabytes_per_second",
kDevCapPeakCmemWrBwGigabytesPerSecond},
{"peak_vmem_rd_bw_gigabytes_per_second",
kDevCapPeakVmemRdBwGigabytesPerSecond},
{"peak_vmem_wr_bw_gigabytes_per_second",
kDevCapPeakVmemWrBwGigabytesPerSecond},
{"peak_sram_rd_bw_gigabytes_per_second",
kDevCapPeakSramRdBwGigabytesPerSecond},
{"peak_sram_wr_bw_gigabytes_per_second",
Expand Down
4 changes: 4 additions & 0 deletions xla/tsl/profiler/utils/xplane_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ enum StatType {
kDevCapComputeCapMinor,
kDevCapPeakTeraflopsPerSecond,
kDevCapPeakHbmBwGigabytesPerSecond,
kDevCapPeakCmemRdBwGigabytesPerSecond,
kDevCapPeakCmemWrBwGigabytesPerSecond,
kDevCapPeakVmemRdBwGigabytesPerSecond,
kDevCapPeakVmemWrBwGigabytesPerSecond,
kDevCapPeakSramRdBwGigabytesPerSecond,
kDevCapPeakSramWrBwGigabytesPerSecond,
kDevVendor,
Expand Down

0 comments on commit a0b99e5

Please sign in to comment.