42 Коммитов

Автор SHA1 Сообщение Дата
Mario Limonciello bfb13f2b43 Run pre-commit's whitespace related hooks on projects/rocm-smi-lib (#2117)
* Run pre-commit's whitespace related hooks on projects/rocm-smi-lib

In order for pre-commit to be useful, everything needs to meet a common
baseline.

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>

* Added Changelog Spaces for formatting

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

---------

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
2025-12-11 15:41:24 -06:00
systems-assistant[bot] 857e5ef3ce chore: unset executable permission (#213)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
2025-09-16 11:06:54 -05:00
Joseph Macaranas 696881ae82 LICENSE clean up (#919)
- Clean up and standardization of MIT licenses after discussion with legal team.
- Update README.md with blurb for top-level files.
- MIT License explicitly mentioned for relevant projects.
- Removal of years.
- Copyright attribution should be to `Advanced Micro Devices, Inc.` and not `AMD ROCm(TM) Software`
- Removal of `All rights reserved.`
- Reduce line width of the text for readability.
- Add clear visual separators for additional licenses.
- Convert text files to markdown format for aforementioned separators.
- Update build scripts to point to renamed files.
- Fixed SMI doc references

Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
2025-09-10 12:06:14 -04:00
Peter Park 148400af45 update license year to 2025
[ROCm/rocm_smi_lib commit: b0831d79cf]
2025-06-03 17:16:54 -05:00
Poag, Charis efb37d89bc [SWDEV-522992] Make libdrm / libdrm_amdgpu load dynamically (#43)
Changes:
- Now load libdrm/libdrm_amdgpu dynamically

Change-Id: I49fb1f3540b3235a25370f7cfcfb9778db34c2a5
Signed-off-by: Charis Poag <Charis.Poag@amd.com>

[ROCm/rocm_smi_lib commit: ce405476ca]
2025-04-16 16:03:42 -05:00
Johar, Adel 0c358ecffe Docs: Fix broken links, warnings and use automodule (#11)
- Fixes the broken links in rocm_smi.h
- Uses automodule instead of autofunction in docs/reference/python_api.rst
- Fixes some warnings during docs build
- Update some of the versions in requirements.txt

[ROCm/rocm_smi_lib commit: e5c5a1d5b7]
2025-01-29 08:06:09 -06:00
Peter Park 459929b5c0 Add LD_LIBRARY_PATH note to rocm.docs pages
https://github.com/ROCm/rocm_smi_lib/pull/197
https://advanced-micro-devices-demo--197.com.readthedocs.build/projects/rocm_smi_lib/en/197/

Change-Id: I64386a4f364e40ce61ad9963376d2686db2aa36d


[ROCm/rocm_smi_lib commit: b7221c64b0]
2024-09-26 11:18:44 -04:00
Sam Wu 6d4aa1f2e6 [ROCDOC-593] Update Read the Docs configuration to Python 3.10 and latest rocm-docs-core
Change-Id: Ia086cd708f5bfcff71780cc104afe1e0908923c9


[ROCm/rocm_smi_lib commit: 2d7d7c449a]
2024-06-12 15:06:24 -06:00
Roopa Malavally 5ba90607ee ROCm SMI Documentation Reorg
Change-Id: I3e4db2c50a43a51eeea4d3e06ba4811ad1859368
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/rocm_smi_lib commit: 2fd36e33ad]
2024-05-31 16:25:35 -05:00
Maisam Arif 5764275b71 Bump version lib:7.1.0 tool:2.1.0+hash
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I6f3d7c64aacf36c9d33d663e23559a7f50cd8db6


[ROCm/rocm_smi_lib commit: c425848141]
2024-05-02 03:30:48 -04:00
Istvan Kiss f0c16aa8a0 Update documentation and add python API documentation
Change-Id: Ibccf5b6a5fba81cea42e04a022deac8a3207b9b8


[ROCm/rocm_smi_lib commit: 50a079af0f]
2024-03-06 22:01:30 -05:00
Sam Wu c785a58e99 [ROCDOC-95] Standardize documentation for ReadtheDocs
Apply the following changes to project documentation for ReadtheDocs:

add version number to documentation left navigation bar and page title
add an "About" section with a license page
enable htmlzip, pdf, epub formats when publishing on Read the Docs
set pdf title, author, copyright, and version
rename .sphinx/.doxygen to sphinx/doxygen
remove docBin from URL
update rocm-docs-core dependency
update dependabot config

Change-Id: Ife8c89a2e9323f436b3e54ef2a9e013c19b3b228


[ROCm/rocm_smi_lib commit: 67dc4b0f2a]
2024-01-11 17:47:58 -05:00
Sam Wu 6dfdffe5a9 Update rocm-docs
Change-Id: I30633c9cd29bc58b0c48086d5f493204f3d6ffd8
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rocm_smi_lib commit: 1de63ce506]
2023-10-18 14:09:26 -05:00
Sam Wu a246645060 fix toc to point to correct doxysphinx output path
update doc requirements; rocm-docs-core to 0.24.1

Change-Id: I78257d476a8bc47fd1a4ee03aa3db1a430ed116f


[ROCm/rocm_smi_lib commit: 7b32ea614b]
2023-09-18 09:07:01 -06:00
Sam Wu 2496c1bc33 sphinx documentation
ref: https://github.com/RadeonOpenCompute/rocm_smi_lib/pull/119

fix formatting in docs/index.md

Change-Id: I940ef8147a40bd3b702aa591bd56557a870621fb


[ROCm/rocm_smi_lib commit: ed74bc6eca]
2023-05-11 10:41:45 -04:00
Chris Freehill 98b976ef3e Refactor rsmi to support oam
Change-Id: Idc524e01ba06eb5c8d1682becaf5bf8ced5bffcf


[ROCm/rocm_smi_lib commit: 6594f8f58b]
2020-06-22 18:51:46 -05:00
Chris Freehill b07fd8fca7 Update XGMI perf counter test to show utilization
Also:
* When destroying a counter, make sure to stop the counter first
* In the test, do not stop (disable) the counter before
  reading it.
* Clean up some whitespace in other tests
* Re-add manual pdf file

Change-Id: I0786ef3a994ca568299c77e44f092af8943ac33d


[ROCm/rocm_smi_lib commit: f946ea37ef]
2020-06-10 12:49:49 -04:00
Chris Freehill 13f3e6afb2 Update README doc. build instructions
* Also, remove dependency of manual pdf on the README
file; they are independent of each other.

Change-Id: I1ab8c8c9adf6b78e5b4aab86ecdf4c46f3a6bf63


[ROCm/rocm_smi_lib commit: bdf22c1c9e]
2020-05-21 09:10:08 -04:00
Chris Freehill db0ed00070 Add RSMI ref manual to packages
Also,
* remove extraneous test files
* fix Doxygen docs. issues
* fix whitespace issues

Change-Id: I9b58b0d68bd125a34f4fe0dc84d609c7b0b6e30e


[ROCm/rocm_smi_lib commit: 8ced9c986a]
2020-05-18 23:40:38 -04:00
Chris Freehill 24090f313a Fix README example error
Change-Id: Ib0124642cea34dcbfae0ea3bbe8ffaf09116bede


[ROCm/rocm_smi_lib commit: f8d623cb44]
2020-05-15 12:09:05 -04:00
Chris Freehill 024e27229c Documentation update
Change-Id: I646cf3d2fd6064295937f7e727076532894d3514


[ROCm/rocm_smi_lib commit: 7abe6dc1b2]
2020-03-27 14:08:19 -05:00
Chris Freehill 6ba4f32620 Correct rsmitst build instructions
Change-Id: Ia7dbdd7a489d235c6003badb79f2d0808e18143b


[ROCm/rocm_smi_lib commit: a482394263]
2020-03-02 16:29:10 -05:00
Chris Freehill 322d1ff303 Use default value for version when git tags not present
Also, documentation typo correction.

Change-Id: I7fe4de05d3b8fb808a980862a09a9be32ed32bf5


[ROCm/rocm_smi_lib commit: fe4f7ed4a1]
2019-12-19 08:32:38 -06:00
Chris Freehill f85d50583a Correct README Markdown formatting
Change-Id: Id63618fc7fa7fa7cdc68bcd451cbe89ef2c04469


[ROCm/rocm_smi_lib commit: ee13e85265]
2019-10-17 08:38:50 -05:00
Chris Freehill 9b707b1469 Support checking for specific device-getter api support
For device-getter functions, allow users to specify a nullptr
for the provided buffer. In those cases, the function will return
RSMI_STATUS_NOT_SUPPORTED if the hardware or system software does
not support the function. If the function is supported, then
RSMI_STATUS_INVALID_ARGS will be returned, unless a different
error is encountered.

Additionally, tests and documentation were updated to reflect
this change.

Change-Id: Ie7db3a4c8c66af97ebd7ee1e3b95cd331ace9d9c


[ROCm/rocm_smi_lib commit: 68d25e82fd]
2019-10-05 15:55:18 -05:00
Chris Freehill 8ea817f79e Add functions that tell what capabilities are supported
The new functions added in this commit allow a caller to tell up
front what functions, function variants and monitors are
supported.

Also,
* fixed a few documentation/formatting issues
* fixed a process_info test issue

Change-Id: I2184ab1a4a6898f847e791f273e2185d556e78e9


[ROCm/rocm_smi_lib commit: 551b15182b]
2019-09-23 13:30:47 -05:00
Chris Freehill 8f26b1b03e Fix building lib and test in non-automated (CI) env.
Also, use abbreviated ROCM_BUILD_ID environment variable for job
and build number, if it's available.

Change-Id: Ib5a721f5920f1008bb6382935f7b439429389de0


[ROCm/rocm_smi_lib commit: aa2db48237]
2019-08-14 23:18:15 -05:00
Chris Freehill 6f491f4948 Update docs for rsmi_dev_memory_reserved_pages_get()
Change-Id: I3cc479ea709bb8d9c23ff35d7339e329477ffe18


[ROCm/rocm_smi_lib commit: 0da1599c4f]
2019-08-06 16:57:09 -05:00
Chris Freehill e2c96d703a Add xgmi error_status and error_reset functions
Also, comment corrections and added check for invalid arguments

Change-Id: I891cbf9b37bfda629914a008811b840323872c02


[ROCm/rocm_smi_lib commit: 557e1f5704]
2019-07-09 09:55:05 -04:00
Chris Freehill fb87f41beb Add initial support for getting process information
Added implementation of and tests for
rsmi_dev_compute_process_info_by_pid_get() and
rsmi_dev_compute_process_info_get()

Change-Id: I4c4f5f39fe6701da37916c9ad41449b5d35ac7af


[ROCm/rocm_smi_lib commit: 9b93cbe21d]
2019-07-03 20:01:43 -05:00
Chris Freehill 4fa6f2f5bb Add rsmi_dev_memory_busy_percent_get()
Change-Id: Ide683b6c72870af547331f4502c5bb8c445d61b5


[ROCm/rocm_smi_lib commit: 1c5e090507]
2019-06-25 19:09:13 -05:00
Chris Freehill bdbd81c02a Event counter support
XGMI related events are supported

Change-Id: If17036fe890c8be45da3654353599821b5828c14


[ROCm/rocm_smi_lib commit: ea26baec20]
2019-06-24 17:40:01 -05:00
Kent Russell 25a1d039a2 Add support for reading GPU's unique ID
Add support and testing for reading the Unique ID associated with a
specific GPU. This ID will persist across reboots, even if the GPU is
moved to a different machine. Note that this is per-GPU, not per-card,
as some cards have multiple GPUs, and each GPU will get a unique
identifier

Change-Id: Idce50c6febc2ceb1a4c1200d2489ec8b9d8fe174


[ROCm/rocm_smi_lib commit: 35d2807196]
2019-06-21 08:39:36 -04:00
Chris Freehill a8fb2a5f29 Add support for junction, edge and memory temperature sensors (#42)
* If vendor/device/subsystem name is not found, use device ID string

* Update documentation for get-name functions

* Add support for junction, edge and memory temperature sensors


[ROCm/rocm_smi_lib commit: 11f714326b]
2019-05-24 15:24:49 -05:00
Chris Freehill 00eec6f558 By default, only consider AMD GPU's in RSMI device list (#36)
With newly added initialization parameters that can be
passed to rsmi_init(), you can tell RSMI to consider other
devices.

Also:
-fixed incorrect header file name that would break in C
builds
-modified rsmi_init() and rsmi_shut_down() to reinitialize and
clear static structures


[ROCm/rocm_smi_lib commit: a0817d6b13]
2019-05-09 20:45:54 -05:00
Chris Freehill c777f1f63f Added ECC enabled, status and get functions
[ROCm/rocm_smi_lib commit: 4e679b9324]
2019-04-03 11:17:43 -05:00
Chris Freehill 2b903fceca Added new id and id name string look up functions
Also, updated docs with typo corrections and a new section


[ROCm/rocm_smi_lib commit: cbdfac7bdc]
2019-03-15 16:21:37 -05:00
Chris Freehill 41c8ca9bb6 Re-organize function documentation into sections
[ROCm/rocm_smi_lib commit: 89fb40fbe5]
2019-03-03 23:11:50 -06:00
Chris Freehill 011b4fc51a Documentation and volt-curve read updates
[ROCm/rocm_smi_lib commit: 68b5e2ee0d]
2019-02-22 15:05:44 -06:00
Chris Freehill b84869a77c Rename manual
Also fix typo.


[ROCm/rocm_smi_lib commit: 5cb0895816]
2019-02-16 13:21:41 -06:00
Chris Freehill b6d8b3e92e Documentation updates
-Replaced README with cleaner version.
-Added PDF introductory document (same as README)


[ROCm/rocm_smi_lib commit: 4449411e35]
2019-02-15 17:23:12 -06:00
Chris Freehill 06b420c200 ROCm 1.9.0 update
[ROCm/rocm_smi_lib commit: 53b7ae1113]
2018-09-16 00:13:29 -05:00