Renamed API amdsmi_dev_get_subsystem_name to

amdsmi_get_gpu_subsystem_name

grep -rli 'amdsmi_dev_get_subsystem_name' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_name/amdsmi_get_gpu_subsystem_name/g' @

Change-Id: Ib6f2b03f824e1ee910cfbbd0bab09ad859ec252b
Ta zmiana jest zawarta w:
Deepak Mewar authored and Naveen Krishna Chatradhi committed 2023-05-11 10:33:20 -04:00
1 rodzic 14f1367d6b
złożenie 82dbd07b2c
9 plików zmienionych
+19 -19

Żadne pliki nie pasują do Twojego wyszukiwania

+3 -3
Wyświetl plik
@@ -3015,7 +3015,7 @@ except AmdSmiException as e:
```
## amdsmi_dev_get_subsystem_name
## amdsmi_get_gpu_subsystem_name
Description: Get the name string for the device subsytem
Input parameters:
@@ -3024,7 +3024,7 @@ Input parameters:
Output: device subsytem
Exceptions that can be thrown by `amdsmi_dev_get_subsystem_name` function:
Exceptions that can be thrown by `amdsmi_get_gpu_subsystem_name` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -3037,7 +3037,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
subsystem_nam = amdsmi_dev_get_subsystem_name(device)
subsystem_nam = amdsmi_get_gpu_subsystem_name(device)
print(subsystem_nam)
except AmdSmiException as e:
print(e)
+1 -1
Wyświetl plik
@@ -162,7 +162,7 @@ from .amdsmi_interface import amdsmi_get_gpu_id
from .amdsmi_interface import amdsmi_get_gpu_vram_vendor
from .amdsmi_interface import amdsmi_dev_get_drm_render_minor
from .amdsmi_interface import amdsmi_get_gpu_subsystem_id
from .amdsmi_interface import amdsmi_dev_get_subsystem_name
from .amdsmi_interface import amdsmi_get_gpu_subsystem_name
# # Version information
from .amdsmi_interface import amdsmi_get_version
+2 -2
Wyświetl plik
@@ -1152,7 +1152,7 @@ def amdsmi_get_gpu_subsystem_id(processor_handle: amdsmi_wrapper.amdsmi_processo
return id.value
def amdsmi_dev_get_subsystem_name(processor_handle: amdsmi_wrapper.amdsmi_processor_handle):
def amdsmi_get_gpu_subsystem_name(processor_handle: amdsmi_wrapper.amdsmi_processor_handle):
if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle):
raise AmdSmiParameterException(
processor_handle, amdsmi_wrapper.amdsmi_processor_handle
@@ -1164,7 +1164,7 @@ def amdsmi_dev_get_subsystem_name(processor_handle: amdsmi_wrapper.amdsmi_proces
name = ctypes.create_string_buffer(_AMDSMI_STRING_LENGTH)
_check_res(
amdsmi_wrapper.amdsmi_dev_get_subsystem_name(
amdsmi_wrapper.amdsmi_get_gpu_subsystem_name(
processor_handle, name, length)
)
+4 -4
Wyświetl plik
@@ -1433,9 +1433,9 @@ amdsmi_get_gpu_vram_vendor.argtypes = [amdsmi_processor_handle, ctypes.POINTER(c
amdsmi_get_gpu_subsystem_id = _libraries['libamd_smi.so'].amdsmi_get_gpu_subsystem_id
amdsmi_get_gpu_subsystem_id.restype = amdsmi_status_t
amdsmi_get_gpu_subsystem_id.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctypes.c_uint16)]
amdsmi_dev_get_subsystem_name = _libraries['libamd_smi.so'].amdsmi_dev_get_subsystem_name
amdsmi_dev_get_subsystem_name.restype = amdsmi_status_t
amdsmi_dev_get_subsystem_name.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctypes.c_char), size_t]
amdsmi_get_gpu_subsystem_name = _libraries['libamd_smi.so'].amdsmi_get_gpu_subsystem_name
amdsmi_get_gpu_subsystem_name.restype = amdsmi_status_t
amdsmi_get_gpu_subsystem_name.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctypes.c_char), size_t]
amdsmi_dev_get_drm_render_minor = _libraries['libamd_smi.so'].amdsmi_dev_get_drm_render_minor
amdsmi_dev_get_drm_render_minor.restype = amdsmi_status_t
amdsmi_dev_get_drm_render_minor.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctypes.c_uint32)]
@@ -1867,7 +1867,7 @@ __all__ = \
'amdsmi_dev_get_pci_throughput', 'amdsmi_dev_get_perf_level',
'amdsmi_dev_get_power_ave',
'amdsmi_dev_get_power_profile_presets',
'amdsmi_get_gpu_subsystem_id', 'amdsmi_dev_get_subsystem_name',
'amdsmi_get_gpu_subsystem_id', 'amdsmi_get_gpu_subsystem_name',
'amdsmi_dev_get_temp_metric', 'amdsmi_get_gpu_vendor_name',
'amdsmi_dev_get_volt_metric', 'amdsmi_get_gpu_vram_vendor',
'amdsmi_dev_open_supported_func_iterator',
+2 -2
Wyświetl plik
@@ -292,7 +292,7 @@ class Formatter:
| """ + self.style.text(" 3 Get device vram vendor. Api: amdsmi_get_gpu_vram_vendor <bdf>") + """ |
| """ + self.style.text(" 4 Get device drm render minor. Api: amdsmi_dev_get_drm_render_minor <bdf>") + """ |
| """ + self.style.text(" 5 Get device subsystem id. Api: amdsmi_get_gpu_subsystem_id <bdf>") + """ |
| """ + self.style.text(" 6 Get device subsystem name. Api: amdsmi_dev_get_subsystem_name <bdf>") + """ |
| """ + self.style.text(" 6 Get device subsystem name. Api: amdsmi_get_gpu_subsystem_name <bdf>") + """ |
| """ + self.style.text(" 7 Get device pci id. Api: amdsmi_dev_get_pci_id <bdf>") + """ |
| """ + self.style.text(" 8 Get device pci bandwidth. Api: amdsmi_dev_get_pci_bandwidth <bdf>") + """ |
| """ + self.style.text(" 9 Get device pci throughput. Api: amdsmi_dev_get_pci_throughput <bdf>") + """ |
@@ -737,7 +737,7 @@ commands = {
5: [smi_api.amdsmi_get_gpu_subsystem_id, {
"device_identifier1": [None, True]
}],
6: [smi_api.amdsmi_dev_get_subsystem_name, {
6: [smi_api.amdsmi_get_gpu_subsystem_name, {
"device_identifier1": [None, True]
}],
7: [smi_api.amdsmi_dev_get_pci_id, {