[SWDEV-490187] reset gpu partition were removed

The reset gpu partition support for both compute and memory were removed

Code changes related to the following:
  * amdsmi_reset_gpu_compute_partition()
  * amdsmi_reset_gpu_memory_partition()
  * CLI

Change-Id: I372589074b4da172bedd39223edde18939e373ae
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
Cette révision appartient à :
gabrpham
2024-10-16 18:38:22 -05:00
Parent 2e5b164c43
révision f5b7761ac7
10 fichiers modifiés avec 79 ajouts et 273 suppressions
-59
Voir le fichier
@@ -3703,35 +3703,6 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_reset_gpu_compute_partition
Description: Reset the compute partitioning on the given GPU
Input parameters:
* `processor_handle` the device handle
Output: String of the partition type
Exceptions that can be thrown by `amdsmi_reset_gpu_compute_partition` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
Example:
```python
try:
devices = amdsmi_get_processor_handles()
if len(devices) == 0:
print("No GPUs on machine")
else:
for device in devices:
amdsmi_reset_gpu_compute_partition(device)
except AmdSmiException as e:
print(e)
```
### amdsmi_get_gpu_memory_partition
@@ -3796,36 +3767,6 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_reset_gpu_memory_partition
Description: Reset the memory partitioning on the given GPU
Input parameters:
* `processor_handle` the device handle
Output: String of the partition type
Exceptions that can be thrown by `amdsmi_reset_gpu_memory_partition` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
Example:
```python
try:
devices = amdsmi_get_processor_handles()
if len(devices) == 0:
print("No GPUs on machine")
else:
for device in devices:
amdsmi_reset_gpu_memory_partition(device)
except AmdSmiException as e:
print(e)
```
### amdsmi_get_xgmi_info
Description: Returns XGMI information for the GPU.