Skip to content

Commit 57e94a6

Browse files
authored
[SWDEV-500382] Add check to pcie throughput for uint64 max (#120)
Signed-off-by: Adam Pryor <Adam.pryor@amd.com> [ROCm/amdsmi commit: 75211a6]
1 parent be1595e commit 57e94a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/amdsmi/rocm_smi/src/rocm_smi.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,6 +3074,10 @@ rsmi_dev_pci_throughput_get(uint32_t dv_ind, uint64_t *sent,
30743074
fs_rng >> *max_pkt_sz;
30753075
}
30763076

3077+
if ((sent && *sent == UINT64_MAX) || (received && *received == UINT64_MAX)){
3078+
return RSMI_STATUS_NOT_SUPPORTED;
3079+
}
3080+
30773081
return RSMI_STATUS_SUCCESS;
30783082
CATCH
30793083
}

0 commit comments

Comments
 (0)