Renamed API amdsmi_control_counter

to amdsmi_gpu_control_counter

grep -rli 'amdsmi_control_counter' * | xargs -i@ sed -i
's/amdsmi_control_counter/amdsmi_gpu_control_counter/g' @

Change-Id: Ibdcd32327ebd2646375fb5c3b913cb528ac8aa97


[ROCm/amdsmi commit: 6e1a72d2c1]
This commit is contained in:
Deepak Mewar
2023-02-27 02:04:54 -05:00
committed by Naveen Krishna Chatradhi
parent ca4b919b16
commit c70ff3cbed
8 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -2316,7 +2316,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_control_counter
## amdsmi_gpu_control_counter
Description: Issue performance counter control commands
Input parameters:
@@ -2326,7 +2326,7 @@ Input parameters:
Output: None
Exceptions that can be thrown by `amdsmi_control_counter` function:
Exceptions that can be thrown by `amdsmi_gpu_control_counter` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -2340,7 +2340,7 @@ try:
else:
for device in devices:
event_handle = amdsmi_gpu_create_counter(device, AmdSmiEventType.XGMI_1_REQUEST_TX)
amdsmi_control_counter(event_handle, AmdSmiCounterCommand.CMD_START)
amdsmi_gpu_control_counter(event_handle, AmdSmiCounterCommand.CMD_START)
except AmdSmiException as e:
print(e)
```