Dalibor Stanisavljevic
daba7ffdb2
Updated python api to match header changes
...
Change-Id: I02f6dde54f50d1d66f8c4a8777f849bf63b50c85
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
[ROCm/amdsmi commit: 1185397d90 ]
2023-06-01 09:40:24 -04:00
Sam Wu
505a8bc3c4
add configurations for sphinx documentation
...
Change-Id: I5672348aab0f20d0bfc4dd1efcfecdf4324342d6
[ROCm/amdsmi commit: c5e06b4040 ]
2023-05-30 16:08:54 -06:00
Bill(Shuzhou) Liu
58962bb075
Clean up the APIs
...
Remove and rename APIs after review.
Change-Id: I5464f200eb605b366673f8abca95183c3837843b
[ROCm/amdsmi commit: 62ce965409 ]
2023-05-30 16:08:54 -04:00
Maisam Arif
ec28030323
Updated AMD-SMI README install instructions
...
Change-Id: I9c914e4fb5fbe22e1ff449408beafc250f5b4bf7
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 7477562374 ]
2023-05-29 16:38:26 -05:00
Maisam Arif
14e2aad3e7
Corrected amdsmi_interface api call & versioning
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I3a80716cb544ab0512073b34702b7fa132767668
[ROCm/amdsmi commit: 60b2b7fb83 ]
2023-05-25 09:53:57 -05:00
Maisam Arif
88ff2a1ee0
Updated AMD-SMI README.md with CLI install instructions
...
Updated amd-smi-lib README with CLI install instructions
Updated version of the python interface and the CLI tool
to 0.1.0 due to the ESMI header changes
Change-Id: If175cdcb9ce0352b6e7e7ce4cc0940a80c11501b
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 72638192f7 ]
2023-05-24 10:07:19 -05:00
Maisam Arif
c94f66bbb6
AMD-SMI-CLI - Packaging updates
...
Added fallback in amdsmi_init.py to access /opt/rocm/share/amd_smi
if python package is not installed
Made libamd_smi.so detection more reliable
Added PyYaml dependency to pyproject.toml
Added python3-clang dependency in CMakeLists
Updated python3 version dependency in CMakeLists
Update Readme
Added Release Notes
Change-Id: Ie3b85fde7563dd84dce499f229aac1f94bcc2989
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: da50f4f078 ]
2023-05-23 10:32:08 -05:00
Maisam Arif
8110af6487
SWDEV-396262 - Fixed units for AMDSMI CLI process
...
Change-Id: Ib85cfb9fe313cfc2eb5cd1d1437426786a99abd9
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 2f18ec7539 ]
2023-05-23 10:31:50 -05:00
Maisam Arif
800af9bf55
SWDEV-397381 - Corrected ECC per block reporting
...
Change-Id: If666e2f1a4b13dd08b6a19f08f3c01297515712c
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: fe64f426d8 ]
2023-05-23 10:31:06 -05:00
Maisam Arif
66f933eeb3
SWDEV-399063 - Fixed process metrics showing incorrectly for all gpus
...
Change-Id: I4ae576f34472c3dbbfa0b136f55ce996834323ad
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 6b8fe4a377 ]
2023-05-23 10:25:05 -05:00
Maisam Arif
09940e45df
AMD-SMI-CLI - Updated amdsmi_interface calls to new headers
...
Change-Id: I031f08c912f2cc77bba3a6f4356b5121072fb71e
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 01bd64c718 ]
2023-05-22 08:35:22 -05:00
Dalibor Stanisavljevic
d95be94e51
SWDEV-384793 - Clean up API
...
Change-Id: I441b315d32df59a454e06d521e5ca8b2c229451a
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
[ROCm/amdsmi commit: 1bc1d431d8 ]
2023-05-19 16:40:26 +02:00
Dalibor Stanisavljevic
c76586e482
SWDEV-384797 - Renamed measure to info
...
Change-Id: I2397ed189fe0171ed29bd6440f8fa0bb210b95a5
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
[ROCm/amdsmi commit: ca7f965018 ]
2023-05-17 05:10:58 -04:00
Bill(Shuzhou) Liu
da3da06941
Return NOT_SUPPORT for set function in VM guest
...
Fix the unit tests which are fail in VM guest environment.
Change-Id: Id7c58887692bbdecba54f5d2d8463b292e19b4ad
[ROCm/amdsmi commit: dc4ba12e00 ]
2023-05-11 10:42:55 -05:00
Suma Hegde
6b138833bf
updated amdsmi_wrapper.py
...
following command is run to generate this file
cmake -B build && make -C build && make -C build python_wrapper
Change-Id: I9ee03c4030537c9e8d260e776c04da52d93a9570
[ROCm/amdsmi commit: 3fa4402833 ]
2023-05-11 11:01:45 -04:00
Suma Hegde
90607682ef
Renamed APIs
...
amdsmi_dev_open_supported_func_iterator -> amdsmi_open_supported_func_iterator
amdsmi_dev_open_supported_variant_iterator -> amdsmi_open_supported_variant_iterator
amdsmi_dev_close_supported_func_iterator -> amdsmi_close_supported_func_iterator
Change-Id: Ie9b2efa5aee7095c3c835b91de1951df6b065510
[ROCm/amdsmi commit: edd8f1ae23 ]
2023-05-11 11:01:37 -04:00
Suma Hegde
19262e1fd8
Renamed API amdsmi_dev_reset_xgmi_error
...
amdsmi_dev_reset_xgmi_error -> amdsmi_reset_gpu_xgmi_error
grep -rli 'amdsmi_dev_reset_xgmi_error' * | xargs -i@ sed -i
's/amdsmi_dev_reset_xgmi_error/amdsmi_reset_gpu_xgmi_error/g' @
Change-Id: Ic7e4c4b345fdf6187aed42d53fb7ae8536c2edea
[ROCm/amdsmi commit: 6256bf6f1a ]
2023-05-11 11:01:25 -04:00
Suma Hegde
13c55d85fe
Renamed amd_smi_device.h to amd_smi_processor.h
...
Change-Id: I9f3cd8b29e4b5e9e552faeb7e977d7a1002abd65
[ROCm/amdsmi commit: a8acfbf8ff ]
2023-05-11 11:01:14 -04:00
Suma Hegde
0be5a5fb82
Renamed APIs
...
amdsmi_dev_get_gpu_ecc_status -> amdsmi_get_gpu_ecc_status
amdsmi_dev_get_gpu_ecc_enabled -> amdsmi_get_gpu_ecc_enabled
amdsmi_dev_get_gpu_ecc_count -> amdsmi_get_gpu_ecc_count
Change-Id: I84e6489f82bae115e1a13c9e4fce8029888ca379
[ROCm/amdsmi commit: d9ba131f73 ]
2023-05-11 11:00:59 -04:00
Deepak Mewar
e0d2d9b909
Renamed APIs
...
1) amdsmi_dev_set_overdrive_level to amdsmi_set_gpu_overdrive_level
2) amdsmi_dev_set_overdrive_level_v1 to amdsmi_set_gpu_overdrive_level_v1
grep -rli 'amdsmi_dev_set_overdrive_level' * | xargs -i@ sed -i
's/amdsmi_dev_set_overdrive_level/amdsmi_set_gpu_overdrive_level/g' @
Change-Id: Id6934e5b0962c9262cca041bdfdf02c60f69573b
[ROCm/amdsmi commit: e687a72235 ]
2023-05-11 11:00:45 -04:00
Deepak Mewar
9d23ac40c6
Renamed API amdsmi_dev_get_od_volt_curve_regions
...
to amdsmi_get_gpu_od_volt_curve_regions
grep -rli 'amdsmi_dev_get_od_volt_curve_regions' * | xargs -i@ sed -i
's/amdsmi_dev_get_od_volt_curve_regions/amdsmi_get_gpu_od_volt_curve_regions/g' @
Change-Id: I4b390c2d5173ca919c4ab5b1173a4fc40e2a0015
[ROCm/amdsmi commit: ced22230c4 ]
2023-05-11 11:00:33 -04:00
Deepak Mewar
a970cea1b0
Renamed API amdsmi_dev_set_od_volt_info
...
to amdsmi_set_gpu_od_volt_info
grep -rli 'amdsmi_dev_set_od_volt_info' * | xargs -i@ sed -i
's/amdsmi_dev_set_od_volt_info/amdsmi_set_gpu_od_volt_info/g' @
Change-Id: I2364f9f555c010e1022e2c946a65b72fcf3d2233
[ROCm/amdsmi commit: 467f3e3bb7 ]
2023-05-11 10:59:51 -04:00
Deepak Mewar
19d30f71bd
Renamed API amdsmi_dev_set_od_clk_info
...
to amdsmi_set_gpu_od_clk_info
grep -rli 'amdsmi_dev_set_od_clk_info' * | xargs -i@ sed -i
's/amdsmi_dev_set_od_clk_info/amdsmi_set_gpu_od_clk_info/g' @
Change-Id: I0f1fd5a80322a544f7d25e09146c9e52b82091f6
[ROCm/amdsmi commit: a72e1ec91d ]
2023-05-11 10:59:25 -04:00
Deepak Mewar
cd81fa970d
Renamed API amdsmi_dev_get_od_volt_info
...
to amdsmi_get_gpu_od_volt_info
grep -rli 'amdsmi_dev_get_od_volt_info' * | xargs -i@ sed -i
's/amdsmi_dev_get_od_volt_info/amdsmi_get_gpu_od_volt_info/g' @
Change-Id: Icd8658509b28523b7c04f8d2c53efb82689e294b
[ROCm/amdsmi commit: 2bd94db02c ]
2023-05-11 10:59:11 -04:00
Deepak Mewar
6229bac89b
Renamed API amdsmi_dev_get_overdrive_level
...
to amdsmi_get_gpu_overdrive_level
grep -rli 'amdsmi_dev_get_overdrive_level' * | xargs -i@ sed -i
's/amdsmi_dev_get_overdrive_level/amdsmi_get_gpu_overdrive_level/g' @
Change-Id: Id33a4544a2f2fd9d77de601addcf4e45d09d65d1
[ROCm/amdsmi commit: 78ce4979e1 ]
2023-05-11 10:59:00 -04:00
Deepak Mewar
f9e0851070
Renamed API amdsmi_dev_xgmi_error_status
...
to amdsmi_gpu_xgmi_error_status
grep -rli 'amdsmi_dev_xgmi_error_status' * | xargs -i@ sed -i
's/amdsmi_dev_xgmi_error_status/amdsmi_gpu_xgmi_error_status/g' @
Change-Id: I0d2338f0e924da5d69d280fdd988c2a6f9fe4ace
[ROCm/amdsmi commit: d83dc2b005 ]
2023-05-11 10:58:49 -04:00
Deepak Mewar
3be8f88cab
Renamed API amdsmi_counter_get_available_counters
...
to amdsmi_get_gpu_available_counters
grep -rli 'amdsmi_counter_get_available_counters' * | xargs -i@ sed -i
's/amdsmi_counter_get_available_counters/amdsmi_get_gpu_available_counters/g' @
Change-Id: Ief60be6c95f2ea4d0f6f91b153263d95710e6942
[ROCm/amdsmi commit: 0cb9e157db ]
2023-05-11 10:56:57 -04:00
Deepak Mewar
1894e4d345
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
[ROCm/amdsmi commit: 7a6c26244e ]
2023-05-11 10:55:52 -04:00
Deepak Mewar
c70ff3cbed
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 ]
2023-05-11 10:55:36 -04:00
Deepak Mewar
ca4b919b16
Renamed API amdsmi_dev_destroy_counter
...
to amdsmi_gpu_destroy_counter
grep -rli 'amdsmi_dev_destroy_counter' * | xargs -i@ sed -i
's/amdsmi_dev_destroy_counter/amdsmi_gpu_destroy_counter/g' @
Change-Id: I328f65f5a2a86108ee5b217f95ed0f4f03745286
[ROCm/amdsmi commit: e6dd8d49ba ]
2023-05-11 10:55:22 -04:00
Deepak Mewar
69267f01c1
Renamed API amdsmi_dev_create_counter
...
to amdsmi_gpu_create_counter
grep -rli 'amdsmi_dev_create_counter' * | xargs -i@ sed -i
's/amdsmi_dev_create_counter/amdsmi_gpu_create_counter/g' @
Change-Id: Ic296057314f98547dd6a01b1c7d51668cfe5bc9a
[ROCm/amdsmi commit: 0c435b81c2 ]
2023-05-11 10:55:06 -04:00
Deepak Mewar
22ad287cbf
Renamed API amdsmi_dev_counter_group_supported
...
to amdsmi_gpu_counter_group_supported
grep -rli 'amdsmi_dev_counter_group_supported' * | xargs -i@ sed -i
's/amdsmi_dev_counter_group_supported/amdsmi_gpu_counter_group_supported/g' @
Change-Id: I69a5534f779dc0013bbe75b3d9b2c6074b2f378b
[ROCm/amdsmi commit: fb419ab655 ]
2023-05-11 10:54:57 -04:00
Deepak Mewar
370168e42c
Renamed API amdsmi_init_event_notification
...
to amdsmi_init_gpu_event_notification
grep -rli 'amdsmi_init_event_notification' * | xargs -i@ sed -i
's/amdsmi_init_event_notification/amdsmi_init_gpu_event_notification/g' @
Change-Id: I6a45d38836f9d4221e3e5159370d4b6791fecca5
[ROCm/amdsmi commit: 2ad8b91e0e ]
2023-05-11 10:54:41 -04:00
Deepak Mewar
b3dac649d9
Renamed API amdsmi_set_event_notification_mask
...
to amdsmi_set_gpu_event_notification_mask
grep -rli 'amdsmi_set_event_notification_mask' * | xargs -i@ sed -i
's/amdsmi_set_event_notification_mask/amdsmi_set_gpu_event_notification_mask/g' @
Change-Id: Id4b9b6bc31f438b6d4d584142c8814f091b4b553
[ROCm/amdsmi commit: 828908424d ]
2023-05-11 10:54:30 -04:00
Deepak Mewar
3dd6db2044
Renamed API amdsmi_stop_event_notification
...
to amdsmi_stop_gpu_event_notification
grep -rli 'amdsmi_stop_event_notification' * | xargs -i@ sed -i
's/amdsmi_stop_event_notification/amdsmi_stop_gpu_event_notification/g' @
Change-Id: If6b7ca238a911cef37306c0b623e219f7ee43225
[ROCm/amdsmi commit: 0bfc2a37aa ]
2023-05-11 10:54:22 -04:00
Deepak Mewar
19eefc2c69
Renamed API amdsmi_get_event_notification
...
to amdsmi_get_gpu_event_notification
grep -rli 'amdsmi_get_event_notification' * | xargs -i@ sed -i
's/amdsmi_get_event_notification/amdsmi_get_gpu_event_notification/g' @
Change-Id: I587f1fa785fabbd5347dca886636a81e3c2d1003
[ROCm/amdsmi commit: 6d6d8ce819 ]
2023-05-11 10:54:07 -04:00
Deepak Mewar
8bc7c2acc9
Renamed API amdsmi_get_compute_process_gpus
...
to amdsmi_get_gpu_compute_process_gpus
grep -rli 'amdsmi_get_compute_process_gpus' * | xargs -i@ sed -i
's/amdsmi_get_compute_process_gpus/amdsmi_get_gpu_compute_process_gpus/g' @
Change-Id: I230bbf85e96983f9e0d2e3c61464c2bf4b353a95
[ROCm/amdsmi commit: 26f8190cb4 ]
2023-05-11 10:53:48 -04:00
Deepak Mewar
48aa5df6ef
Renamed APIs
...
1) amdsmi_get_compute_process_info to
amdsmi_get_gpu_compute_process_info
2) amdsmi_get_compute_process_info_by_pid to
amdsmi_get_gpu_compute_process_info_by_pid
grep -rli 'amdsmi_get_compute_process_info' * | xargs -i@ sed -i
's/amdsmi_get_compute_process_info/amdsmi_get_gpu_compute_process_info/g' @
Change-Id: Ia5c9c22d1466ecea27d3ae3025b3b87db75853e2
[ROCm/amdsmi commit: f3854b3d5f ]
2023-05-11 10:53:41 -04:00
Deepak Mewar
edd17ebe30
Renamed API amdsmi_get_process_info
...
to amdsmi_get_gpu_process_info
grep -rli 'amdsmi_get_process_info' * | xargs -i@ sed -i
's/amdsmi_get_process_info/amdsmi_get_gpu_process_info/g' @
Change-Id: I8f050ed59c926a821894780f9036b9f52c48ef88
[ROCm/amdsmi commit: 64b258ae84 ]
2023-05-11 10:53:26 -04:00
Deepak Mewar
e92d12ebbb
Renamed API amdsmi_get_process_list
...
to amdsmi_get_gpu_process_list
grep -rli 'amdsmi_get_process_list' * | xargs -i@ sed -i
's/amdsmi_get_process_list/amdsmi_get_gpu_process_list/g' @
Change-Id: I230c23aa135e9e11575e73c58355ae444783d1a5
[ROCm/amdsmi commit: c92f18dda1 ]
2023-05-11 10:52:56 -04:00
Deepak Mewar
2e060f2934
Renamed API amdsmi_dev_get_ecc_status
...
to amdsmi_dev_get_gpu_ecc_status
grep -rli 'amdsmi_dev_get_ecc_status' * | xargs -i@ sed -i
's/amdsmi_dev_get_ecc_status/amdsmi_dev_get_gpu_ecc_status/g' @
Change-Id: I11f9b818e251684d688f266e8721ff7a9277f6bd
[ROCm/amdsmi commit: 7232a79e18 ]
2023-05-11 10:52:32 -04:00
Deepak Mewar
6d927b285c
Renamed API amdsmi_dev_get_ecc_enabled
...
to amdsmi_dev_get_gpu_ecc_enabled
grep -rli 'amdsmi_dev_get_ecc_enabled' * | xargs -i@ sed -i
's/amdsmi_dev_get_ecc_enabled/amdsmi_dev_get_gpu_ecc_enabled/g' @
Change-Id: I8cb31a2fc4128758a3545e1d17f743a6eff152a0
[ROCm/amdsmi commit: 4347ad6a0c ]
2023-05-11 10:51:57 -04:00
Deepak Mewar
60e0a30dfe
Renamed API amdsmi_dev_get_ecc_count
...
to amdsmi_dev_get_gpu_ecc_count
grep -rli 'amdsmi_dev_get_ecc_count' * | xargs -i@ sed -i
's/amdsmi_dev_get_ecc_count/amdsmi_dev_get_gpu_ecc_count/g' @
Change-Id: I851aeec18de1e2151f74f39a149c6ddd53eee695
[ROCm/amdsmi commit: 8c76a96cfb ]
2023-05-11 10:50:46 -04:00
Deepak Mewar
5302a45b29
Renamed API amdsmi_get_ecc_error_count
...
to amdsmi_get_gpu_ecc_error_count
grep -rli 'amdsmi_get_ecc_error_count' * | xargs -i@ sed -i
's/amdsmi_get_ecc_error_count/amdsmi_get_gpu_ecc_error_count/g' @
Change-Id: I8b7b80278ac47d394f98718d41da5d5a1b833f9c
[ROCm/amdsmi commit: b683eedab2 ]
2023-05-11 10:50:24 -04:00
Deepak Mewar
e0f8b19de9
Renamed API amdsmi_get_bad_page_info
...
to amdsmi_get_gpu_bad_page_info
grep -rli 'amdsmi_get_bad_page_info' * | xargs -i@ sed -i
's/amdsmi_get_bad_page_info/amdsmi_get_gpu_bad_page_info/g' @
Change-Id: I59e2478804b2eea42691377ec280e61022a39a8e
[ROCm/amdsmi commit: 2170f8e72b ]
2023-05-11 10:50:09 -04:00
Deepak Mewar
457415dea6
Renamed API amdsmi_get_ras_block_features_enabled
...
to amdsmi_get_gpu_ras_block_features_enabled
grep -rli 'amdsmi_get_ras_block_features_enabled' * | xargs -i@ sed -i
's/amdsmi_get_ras_block_features_enabled/amdsmi_get_gpu_ras_block_features_enabled/g' @
Change-Id: I23d6c6145465f6a3f28a48717b2343a816ff5c9b
[ROCm/amdsmi commit: 51d91b9071 ]
2023-05-11 10:49:55 -04:00
Deepak Mewar
6729efd3a5
Renamed API amdsmi_get_target_frequency_range
...
to amdsmi_get_gpu_target_frequency_range
grep -rli 'amdsmi_get_target_frequency_range' * | xargs -i@ sed -i
's/amdsmi_get_target_frequency_range/amdsmi_get_gpu_target_frequency_range/g' @
Change-Id: Ife4c533ded5d7743238502fe1789f34fd0edf9b8
[ROCm/amdsmi commit: 849e43451d ]
2023-05-11 10:49:42 -04:00
Deepak Mewar
971ff06772
Renamed API amdsmi_dev_get_power_profile_presets
...
to amdsmi_get_gpu_power_profile_presets
grep -rli 'amdsmi_dev_get_power_profile_presets' * | xargs -i@ sed -i
's/amdsmi_dev_get_power_profile_presets/amdsmi_get_gpu_power_profile_presets/g' @
Change-Id: Iff3d22517a4c5ece5efe4738618f74946cf600bd
[ROCm/amdsmi commit: 64e8d81af4 ]
2023-05-11 10:49:30 -04:00
Deepak Mewar
75a1305080
Renamed API amdsmi_dev_get_gpu_metrics_info
...
to amdsmi_get_gpu_metrics_info
grep -rli 'amdsmi_dev_get_gpu_metrics_info' * | xargs -i@ sed -i
's/amdsmi_dev_get_gpu_metrics_info/amdsmi_get_gpu_metrics_info/g' @
Change-Id: Ic4d8095fcfc5f2f5419211bb7155a6bd7116ed29
[ROCm/amdsmi commit: f95a63f216 ]
2023-05-11 10:49:20 -04:00
Deepak Mewar
3abd39f245
Renamed API amdsmi_dev_reset_gpu
...
to amdsmi_reset_gpu
grep -rli 'amdsmi_dev_reset_gpu' * | xargs -i@ sed -i
's/amdsmi_dev_reset_gpu/amdsmi_reset_gpu/g' @
Change-Id: Iebd03bc710fed1a75f262726ab33cd1a42d641a7
[ROCm/amdsmi commit: 98f87d9633 ]
2023-05-11 10:47:08 -04:00