Renamed API amdsmi_read_counter

to amdsmi_gpu_read_counter

grep -rli 'amdsmi_read_counter' * | xargs -i@ sed -i
's/amdsmi_read_counter/amdsmi_gpu_read_counter/g' @

Change-Id: Ie9fec914358dd901930db54ab94e05f2fe32fa5a
This commit is contained in:
Deepak Mewar authored and Naveen Krishna Chatradhi committed 2023-05-11 10:55:52 -04:00
1 parent 6e1a72d2c1
commit 7a6c26244e
8 files changed
+23 -23

No files matched your search

+3 -3
View File
@@ -2344,7 +2344,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_read_counter
## amdsmi_gpu_read_counter
Description: Read the current value of a performance counter
Input parameters:
@@ -2359,7 +2359,7 @@ Field | Description
`time_enabled`| Time that the counter was enabled in nanoseconds
`time_running`| Time that the counter was running in nanoseconds
Exceptions that can be thrown by `amdsmi_read_counter` function:
Exceptions that can be thrown by `amdsmi_gpu_read_counter` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -2373,7 +2373,7 @@ try:
else:
for device in devices:
event_handle = amdsmi_gpu_create_counter(device, AmdSmiEventType.XGMI_1_REQUEST_TX)
amdsmi_read_counter(event_handle)
amdsmi_gpu_read_counter(event_handle)
except AmdSmiException as e:
print(e)
```