Mario Limonciello
08949cb884
Run pre-commit's whitespace related hooks on projects/amdsmi ( #2119 )
...
* Run pre-commit's whitespace related hooks on projects/amdsmi
In order for pre-commit to be useful, everything needs to meet a common
baseline.
* Add whitespace back to Changelog for formatting
---------
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org >
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2025-12-15 13:20:47 -06:00
Galantsev, Dmitrii
4e8d89306e
Add downloaded gtest as fallback
...
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: aac09912ec ]
2025-11-06 01:26:40 -06:00
Galantsev, Dmitrii
adaf3c9966
Use system gtest instead of building from source
...
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: a375479386 ]
2025-10-30 12:38:11 -05:00
Park, Peter
e8d06cc0d6
Update install instructions ( #759 )
...
- `amdgpu-install` is no longer recommended. Link to separate driver
installation docs.
- add verify step
- update readme
- add package info
Signed-off-by: Park, Peter <Peter.Park@amd.com >
[ROCm/amdsmi commit: 12fb58c30b ]
2025-10-28 09:59:11 -05:00
Arif, Maisam
1a36f2ad0b
[SWDEV-550075] Updated README to link to amd-smi virtualization repo ( #664 )
...
Co-authored-by: Peter Park <peter.park@amd.com >
[ROCm/amdsmi commit: fd5eb4e963 ]
2025-09-09 16:05:01 -05:00
Arif, Maisam
433893c770
Revert "[SWDEV-536176] libdrm_amdgpu depdency change ( #448 )"
...
This reverts commit 4d33e79baa .
[ROCm/amdsmi commit: ed2300516f ]
2025-08-27 20:11:17 -05:00
Arif, Maisam
4d33e79baa
[SWDEV-536176] libdrm_amdgpu depdency change ( #448 )
...
* Cmake fix updates
* Next fix will be addressing libdrm further
---------
Signed-off-by: adapryor <Adam.pryor@amd.com >
Signed-off-by: Justin Williams <juwillia@amd.com >
[ROCm/amdsmi commit: 652761de54 ]
2025-08-27 09:32:51 -05:00
Arif, Maisam
e5d03d099a
Revert "[SWDEV-505176] Submodule Unified Header in AMDSMI"
...
This reverts commit 0e895cf235 .
[ROCm/amdsmi commit: 240a607904 ]
2025-07-30 14:08:24 -05:00
Narlo, Joseph
0e895cf235
[SWDEV-505176] Submodule Unified Header in AMDSMI
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: a315b62e37 ]
2025-07-30 13:37:01 -05:00
Galantsev, Dmitrii
3c32ef6c39
CMAKE - Clean-up cmake changes introduced in a9b8b6d369b390af0c00bbffab2b4fe1748b8bad
...
Change-Id: Ida0e9475a926a2495e36b0d9bc2468c48aee0e77
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: fe98b8bd63 ]
2025-05-05 15:43:12 -05:00
Poag, Charis
fb3d7b9fb9
[SWDEV-528647/SWDEV-528450] Reduce API load times and libdrm/libdrm_amdgpu dynamic loading ( #333 )
...
Changes:
- Removed libdrm/libdrm_amdgpu dependencies
- Added/updated new internal libdrm/libdrm_amdgpu/xf86drm APIs
to allow our APIs to reference before dynamic loading
the libdrm/libdrm_amdgpu libraries:
1. amdgpu_drm.h to what's seen in mainline
2. Added xf86drm.h to whats seen in mainline
- Modified internal DRM capabilities:
1. Require each API to independently connect to libdrm/libdrm_amdgpu
+ validate API handles reponses accordingly
2. Initialization of AMD SMI no longer has as strong of a tie to
libdrm
- Updated internal implementations of several APIs which have
connections to libdrm/libdrm_amdgpu or APIs which have conflicts
with open libdrm/libdrm_amdgpu connections:
1. amdsmi_init()
2. amdsmi_get_gpu_vram_usage()
3. amdsmi_get_gpu_asic_info()
4. amdsmi_get_gpu_vram_info()
5. amdsmi_get_gpu_vbios_info()
6. amdsmi_get_gpu_driver_info()
7. amdsmi_get_gpu_virtualization_mode()
8. amdsmi_set_gpu_memory_partition()
9. amdsmi_set_gpu_memory_partition_mode()
- Cleaned up effected tests/APIs
Change-Id: I96e2cf1b06b0cfee1b01a5e991ccc6116c4245a8
[ROCm/amdsmi commit: b5a43b7744 ]
2025-05-02 21:58:53 -05:00
Justin Williams
484614fe9b
[SWDEV-521116] Added 'more_itertools" error workaround
...
Signed-off-by: Justin Williams <Justin.Williams@amd.com >
[ROCm/amdsmi commit: af943ac05c ]
2025-04-12 13:42:43 -05:00
Park, Peter
3dbeab2c67
[SWDEV-519170] Docker container config documentation ( #178 )
...
* add docker container guide
* add example
* update index, README, and _toc
[ROCm/amdsmi commit: 547ed49efb ]
2025-03-14 09:58:46 -05:00
Park, Peter
54eba4b8a8
[SWDEV-510820] Add missing goamdsmi documentation ( #147 )
...
* add API doc comments to goamdsmi.go
* update README and usage
* add sphinx directive to parse go doc
* fix walrus operator typos
* make docs more consistent
* add Go docs to index.md
---------
Signed-off-by: Arif, Maisam <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 15c32f6116 ]
2025-03-07 12:37:54 -06:00
Williams, Justin
ac6c71732f
[SWDEV-514609] Added setuptools & wheel dependencies ( #143 )
...
[SWDEV-514609] Added setuptools & wheel dependencies
Change-Id: Iada4e85b37181a0fd67f625b49fda090f1447d13
Signed-off-by: Williams, Justin <Justin.Williams@amd.com >
[ROCm/amdsmi commit: 82f6794573 ]
2025-03-06 16:59:02 -06:00
Williams, Justin
969256202b
[SWDEV-516619] Added libdrm-dev dependencies to README ( #130 )
...
Signed-off-by: Williams, Justin <Justin.Williams@amd.com >
[ROCm/amdsmi commit: d65b2677b6 ]
2025-02-26 02:12:42 -06:00
Park, Peter
35b58c8fb4
Update copyright year to 2025
...
Signed-off-by: Peter Park <peter.park@amd.com >
[ROCm/amdsmi commit: 63af5cf611 ]
2025-01-22 15:06:09 -06:00
Williams, Justin
321aa328de
Update README.md
...
Signed-off-by: Williams, Justin <Justin.Williams@amd.com >
[ROCm/amdsmi commit: 71d8fa1c0f ]
2024-12-18 15:36:26 -06:00
Peter Park
a003e50130
docs: Remove redundant/stale docs
...
bump rocm-docs-core to 1.8.2
rm unused files
rm stale docs
fix sphinx conf
reorg docs
SWDEV-482203 -- add note to usage guides
update readmes
Change-Id: I9e0111ac8fe2a691ac964b27436ba47747c27904
Signed-off-by: Peter Park <Peter.Park@amd.com >
[ROCm/amdsmi commit: e196f98dba ]
2024-11-11 16:49:17 -04:00
gabrpham
17f7c7c2e8
[SWDEV-489060] Added python3-setuptools and wheel as prereqs in README.
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I51cf938033d746bd6c255d518d7e0d3a87296be4
[ROCm/amdsmi commit: 4effd48fe2 ]
2024-11-07 14:42:04 -04:00
Maisam Arif
014d0a4e96
[SWDEV-488819] - Backward Compatibility Disclaimer
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I8b00d2009e3d01da134ac21ddcb0994357d76a54
[ROCm/amdsmi commit: 30f6a114e1 ]
2024-10-01 14:57:23 -05:00
Eisuke Kawashima
efed731082
chore: unset executable permission
...
Change-Id: I06727774f3b1657a7955b172a40d0dfc9c76d6b9
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 1b6ec8df07 ]
2024-09-16 17:34:39 -04:00
Galantsev, Dmitrii
43a2e42521
Remove python-clang dependency
...
python3-clang was only used to generate the python wrapper
We now use it only within the docker image for the generator
Change-Id: Id574f109b959d72f0734b0df4c26b3bbab3238fd
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: fa4e488111 ]
2024-09-04 15:33:28 -05:00
Dalibor Stanisavljevic
cdd24a7b0f
SWDEV-457337 - Fix header alignment
...
Change-Id: I9f25f6c4f0d00c76b66d13162f30be11368f5b59
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
[ROCm/amdsmi commit: 7b2463abe0 ]
2024-05-23 04:41:57 -04:00
Deepak Mewar
e1a0420ac0
Updated README with esmi sample code
...
Change-Id: I50de7926fd76757e5810e8c531bcb6f5770ff454
[ROCm/amdsmi commit: a3407090c3 ]
2024-03-21 15:51:51 -04:00
Charis Poag
e9190173ea
Update ROCm 6.0/6.1 CHANGELOG.md & README.md
...
* Updates:
- [CHANGELOG.md] Add 6.1 and update 6.0 changes
- [README.md] Update README.md with ROCm install instructions
Change-Id: Ic701ebcb00e5d0af54d8f97707c1cec71a0aac4c
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: 583e5e99bf ]
2024-03-19 19:54:01 -05:00
Lisa
cf0de025c1
fix links
...
Change-Id: I23520f7abf5e67453a928a07b46f126bcd5c1469
Reviewed-By: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: ec56aba6c1 ]
2024-03-07 06:05:53 -06:00
Deepak Mewar
a8b48ff1e5
amdsmi README updated for esmi library usage
...
Change-Id: I1406f0b0434e735b7d1cc1d931e7a2c92dfba728
[ROCm/amdsmi commit: 9375b6f820 ]
2024-01-24 14:30:26 -05:00
Maisam Arif
05210b2c16
SWDEV-440462: Fixed metric functionality to Linux Guest
...
Change-Id: Ia69d01251d1e9bb3717bda3a7d0f752c739393a6
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: 6292ac513c ]
2024-01-21 02:46:15 -06:00
Maisam Arif
6e39064453
Fixed python3 lib install for DEB & RPM
...
Upgraded python3-yaml into a dependency; needed for cli
Added checks before uninstalling amdsmi system
Made argcomplete activation only for installing user
Corrected returns outside of function to exit
Removed returns if python3 library install fails
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I299dc01e07029b255a3469fd63fdc8ffec943828
[ROCm/amdsmi commit: e0a1a6ca96 ]
2023-11-09 00:17:44 -06:00
Galantsev, Dmitrii
009da920b7
Remove absolute link to libamd_smi.so
...
Also modify README to include:
export PATH="$PATH:/opt/rocm/bin"
Change-Id: Ib4513d61fd3e6b23cc789491c11d83e6a6de947a
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 874d8edb3d ]
2023-11-02 14:31:58 -05:00
Maisam Arif
0a90c7cfc8
SWDEV-429037 - Automatically install amdsmi python lib with package
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I9c8c1335982ebd61a29da6f66c635f0a97d95f6e
[ROCm/amdsmi commit: c2e12feb6a ]
2023-11-02 15:15:27 -04:00
Deepak Mewar
b2b284c4b0
Updated README for esmi lib support for amdsmi
...
Change-Id: Icff9120b4323cad4ab9f9578d509b0596f808fcf
[ROCm/amdsmi commit: 3e3a233e49 ]
2023-11-02 01:59:15 -04:00
Galantsev, Dmitrii
92400d8e31
README - Add argcomplete instructions
...
Change-Id: I76a35e38735e71cd30ba62a177bed53300b63515
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 2b603be71b ]
2023-10-24 12:48:37 -04:00
Maisam Arif
0bddd17717
Updated READMEs & Versioning for 6.0 Release
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Idadece3c1022ecba4291b96ddbe23112e27394de
[ROCm/amdsmi commit: 5018a57b62 ]
2023-10-16 16:57:49 -05:00
Galantsev, Dmitrii
f7cb43462e
Add wrapper generator
...
Change-Id: I34a191acfefbef2e40d0242eb121ba9af55cb9de
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: c94036de21 ]
2023-10-12 22:12:56 -04:00
Maisam Arif
d0656df4ca
Updated tool & lib versions & README.md
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ic41a36bcfa988ce9c8304157593012752857e919
[ROCm/amdsmi commit: 25b055014d ]
2023-09-25 02:02:22 -05:00
Galantsev, Dmitrii
77a46001c2
README - Add documentation links
...
Change-Id: I048c159394286545d518176d2751a43934b7fe9d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: fe0b6e5f4c ]
2023-09-13 19:38:38 -05:00
Maisam Arif
907fcc53a1
Updated READMEs
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Idf34bc431184414a17c3cb50c06543151ce3cb56
[ROCm/amdsmi commit: a13d5be933 ]
2023-08-01 14:28:33 -04:00
Maisam Arif
d4474f5bf2
Merge "[AMDSMI] [Linux] [BM] [Guest] Improve Python readme" into amd-dev
...
[ROCm/amdsmi commit: 1bbfb0af56 ]
2023-07-19 16:07:29 -04:00
Marko Oblak
1ffbaf3793
[AMDSMI] [Linux] [BM] [Guest] Improve Python readme
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: Ic8c1ea2789407621d2155763a33cc7059cfe6729
[ROCm/amdsmi commit: 8f7e795b02 ]
2023-07-19 13:46:00 +02:00
Sirb, Corina
a88074671e
Update Copyright Date
...
Signed-off-by: Sirb, Corina <corina.sirb@amd.com >
Change-Id: I4b5dc49a5d756012e533ba7196b246836cf980f6
[ROCm/amdsmi commit: ebe0cecd9e ]
2023-07-18 15:05:14 -04:00
Sam Wu
602130e212
Sphinx Documentation Setup
...
Added README links to Python library and CLI tool
Get correct version number from header file
Updated base README with sphinx documentation steps
Change-Id: I60eb3d37d77dab4ff7c8334f94b9c1804edb524b
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
[ROCm/amdsmi commit: 7104b6fe31 ]
2023-06-07 09:47:37 -05:00
Dalibor Stanisavljevic
7fcee0d34b
Align header changes with other platforms
...
Change-Id: I366e57310e0504855692626e2b2014bea235ed6b
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
[ROCm/amdsmi commit: 8dbc1d7d57 ]
2023-06-02 12:28:09 +02: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
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
Deepak Mewar
da14f8b791
Renamed API amdsmi_dev_get_temp_metric to
...
amdsmi_get_temp_metric
grep -rli 'amdsmi_dev_get_temp_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_temp_metric/amdsmi_get_temp_metric/g' @
Change-Id: I4a342f9d1c5183afdeac67506fef73e895911283
[ROCm/amdsmi commit: d3289258b4 ]
2023-05-11 10:44:16 -04:00
Deepak Mewar
3c3dc03704
Renamed API amdsmi_get_board_info to
...
amdsmi_get_gpu_board_info
grep -rli 'amdsmi_get_board_info' * | xargs -i@ sed -i
's/amdsmi_get_board_info/amdsmi_get_gpu_board_info/g' @
Change-Id: Ia3fb361aaf5832813e7ce41bfb88fbbf1432020b
[ROCm/amdsmi commit: 928b7e2a4d ]
2023-05-11 10:36:10 -04:00
Suma Hegde
746e0ffb5c
Change device_type to processor_type
...
also rename amdsmi_get_device_type to amdsmi_get_processor_type
grep -rli 'device_type' * | xargs -i@ sed -i
's/device_type/processor_type/g' @
Change-Id: Ic6a73c1a170757d5ab5d10ad20b4fc2f0b280e78
[ROCm/amdsmi commit: dd00a16124 ]
2023-05-11 10:28:31 -04:00
Suma Hegde
94331a7a90
Change device_handle to processor_handle
...
grep -rli 'device_handle' * | xargs -i@ sed -i
's/device_handle/processor_handle/g' @
Change-Id: Ifc8b7fa3b5488ce1fa8d8cf9eb3981a09450de11
[ROCm/amdsmi commit: 3f9e4d95d4 ]
2023-05-11 10:11:24 -04:00