Narlo, Joseph
fc54da7679
[SWDEV-489696] Improve AMD SMI Python APIs Functional and Unit Testing ( #408 )
...
Signed-off-by: josnarlo <Joseph.Narlo@amd.com >
[ROCm/amdsmi commit: 13148c5d8e ]
2025-05-29 17:18:08 -05:00
Narlo, Joseph
d2bf77401e
[SWDEV-532129] Update amdsmi asic info ( #369 )
...
* Added `subsystem_id` to `amdsmi_get_gpu_asic_info`
---------
Signed-off-by: Narlo, Joseph <Joseph.Narlo@amd.com >
[ROCm/amdsmi commit: 9862db63dd ]
2025-05-28 18:26:58 -05:00
Narlo, Joseph
cd71942678
[SWDEV-529483] Get Vram Vendor Name from Driver ( #323 )
...
* Update to remove vram enum and instead use the string directly from the driver.
Signed-off-by: Narlo, Joseph <Joseph.Narlo@amd.com >
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: f71ae88956 ]
2025-05-28 17:57:49 -05:00
Poag, Charis
267fa91e8a
[SWDEV-493274/SWDEV-514998] Add AMD SMI partition tests + Add Guest amd-smi static --partition ( #127 )
...
* [SWDEV-493274/SWDEV-514998] Add AMD SMI partition tests + Add Guest amd-smi static --partition
Changes:
- Added amd-smi static --partition for guest systems
- Added C++ tests for memory and compute (accelerator) partitions
- Added Python tests for amdsmi_get_gpu_vram_info(),
amdsmi_get_gpu_accelerator_partition_profile_config()
- Updated Python tests for
amdsmi_get_gpu_accelerator_partition_profile()
Now includes more profile and resource detail
- Added amdsmi_get_gpu_xcd_counter();
Tests provided for both C++/Python APIs
- Added AmdSmiVramType & AmdSmiVramVendor: they were missing
python testing required adding.
Change-Id: Ib6549d8ccc5fb68726f38745b87c78f890186022
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: 48cb5529d2 ]
2025-03-11 16:38:46 -05:00
Narlo, Joseph
c26da62fc7
[SWDEV-513651] Sync Unified And Linux Header ( #98 )
...
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
[ROCm/amdsmi commit: dc4a16da6f ]
2025-02-06 22:25:50 -06:00
Castillo, Juan
489105e734
[SWDEV-508173] [AMDSMI] Python API missing function errors ( #46 )
...
* [SWDEV-508173] Updates include:
- Updating py-interface to import amdsmi_get_gpu_reg_table_info and amdsmi_get_gpu_pm_metrics_info.
- Updating the ctypes from byref to pointer.
Signed-off-by: Castillo, Juan <Juan.Castillo@amd.com >
[ROCm/amdsmi commit: 9cc5c303a2 ]
2025-01-21 14:11:41 -06:00
Scaffidi, Salvatore
6eeb06927d
[SWDEV-463406] Update API with fields for gfx_clock_below_host_limit and low_utilization violations
...
Updated API with fields for gfx_clock_below_host_limit and low_utilization violations
Change-Id: I25647bae6e7b785f44dab024272767658688bcad
---------
Signed-off-by: Scaffidi, Salvatore <Salvatore.Scaffidi@amd.com >
Signed-off-by: Arif, Maisam <Maisam.Arif@amd.com >
Co-authored-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: 3793be7735 ]
2025-01-08 22:07:23 -06:00
Joe Narlo
bad2cc9c23
SWDEV-495787 [AMDSMI] Different license headers
...
Change copyrights to MIT and remove date
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: I16f5b412f2b9ddefaaa1771aa714cc18829a1be4
[ROCm/amdsmi commit: 3052ad4220 ]
2024-11-22 08:55:28 -05:00
Maisam Arif
2ee6a3c178
Revert "SWDEV-489696 [AMD SMI] Update python integration test"
...
This reverts commit f34bfce669 .
Reason for revert: Changes needed
Change-Id: I96cc956a2f1c73a2828c70ec9aa22931ba570d8f
[ROCm/amdsmi commit: afd06950c1 ]
2024-11-14 18:54:48 -05:00
Joe Narlo
f34bfce669
SWDEV-489696 [AMD SMI] Update python integration test
...
Initial update
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: I7c5777159f591f8b402168576b14ef8c1157e8d9
[ROCm/amdsmi commit: 06e7bf8a98 ]
2024-11-14 17:52:01 -05:00
Charis Poag
5278e0c290
[SWDEV-463406] Add volation_status current counter/accumulated values
...
Changes:
- amdsmi_violation_status_t now includes current accumulated/counter
values
- Tests/wrapper now include added values
- Removed ASIC references in header for host/bm alignment
- Fix violation_status->per_hbm_thrm /
violation_status->active_hbm_thrm
calculations.
Change-Id: Ic86a7cbad5198a41018f82f6b588b83158d9ba0b
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: 5eff39915b ]
2024-10-04 15:56:01 -04:00
Charis Poag
7a35c805b0
[SWDEV-422195/SWDEV-440985] GPU metrics 1.6
...
Changes:
- Added new GPU metrics:
1) Violation status' (ex. PVIOL/TVIOL) accumulators
2) XCP (Graphics Compute Partitions) statistics
3) pcie other end recovery counter
- CLI/API/tests changes were made accordingly
Change-Id: I589b9b1f570f25dda12d95bb501feca85da8b3bb
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: 3a4abbd8c0 ]
2024-09-27 12:04:21 -05:00
Ryo Ficano
701e69686b
[SWDEV-482963] [Test updates] Add new tests for p0 items - BM v2
...
Updates:
- Added tests for these API calls:
amdsmi_get_socket_handles
amdsmi_get_processor_type
amdsmi_get_clk_freq
amdsmi_get_gpu_process_info
amdsmi_get_gpu_ras_block_features_enabled
amdsmi_get_gpu_ecc_count
amdsmi_get_gpu_memory_usage
amdsmi_get_gpu_vendor_name
amdsmi_get_utilization_count
- Added amdsmi_init() and amdsmi_shut_down() before and after each test.
- Updated README and removed all pytest references.
Change-Id: Ida0c165a466571b1df36c413161bd95c070f6ff1
Signed-off-by: Ryo Ficano <Ryo.Ficano@amd.com >
[ROCm/amdsmi commit: 9979be8512 ]
2024-09-26 14:08:13 -04:00
gabrpham
0fd0b46b7f
Moved partition_id from static --asic-info to static --partition.
...
partition_id also removed from the `amdsmi_asic_info_t` struct and
supporting API has been added for querying partition information.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Id5a6291a77d11bb97a1c7a200fc465898e86e081
[ROCm/amdsmi commit: c9a489d437 ]
2024-09-20 03:48:42 -04:00
Maisam Arif
82096d7f74
Moved KFD information to separate structure and API
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: If6eaea589edc704cf408d6391b5f2154134035e7
[ROCm/amdsmi commit: 3b7f661e71 ]
2024-09-20 03:48:42 -04:00
Juan Castillo
487fd5e1fd
[SWDEV-482966/ SWDEV-482967] Removing pytest dependency + install path change
...
Signed-off-by: Juan Castillo <juan.castillo@amd.com >
Change-Id: I7aace93fcad18d67443e6849c10a1fbbc65d0fa8
Signed-off-by: Juan Castillo <juan.castillo@amd.com >
[ROCm/amdsmi commit: ac593f9fa0 ]
2024-09-18 00:27:00 -04:00