Move memory_caps defintion and correct the number in reserved to match Confluence
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com>
Change-Id: Id94144f4b3d2d3d7b4d7327211ffc1957ffd0a93
[ROCm/amdsmi commit: 54462ab447]
Changes:
- Corrected max speed users can sample from FW/driver
is 100 ms
- Added warning to amdsmi_get_violation_status()
call on delay required 100ms to sample
- Removed guest support, this API will not be supported
- Updated CLI `amd-smi metric --throttle` outputs from
XXX_active -> XXX_status
XXX_percent -> XXX_activity
to align with host
- Changelog updated
Change-Id: Ib30dd35dcc04ff67904ca82c86a55a16689df226
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
[ROCm/amdsmi commit: 0ceca28f41]
TEST FAILURE message for `amdsmi_get_gpu_cpi_throughput` and
`amdsmi_get_gpu_pci_bandwidth` changed to WARNING to indicate that
pcie_bw and/or pp_dpm_pcie sysfs files may not be supported on respetive
devices.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
Change-Id: I1ad6e15eceacb5a00b022458ee5fb21df9d845c7
[ROCm/amdsmi commit: 00b3184e9f]
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>
[ROCm/amdsmi commit: f5b7761ac7]
Implements DiscoverIOLinkPerNodeDirection() based on KFD Node infrastructure;
'/kfd/topology/nodes/*/io_links'
Code changes related to the following:
* Internal implementation
Change-Id: Iccd84d1d69234dbeae4d4925f657e7e3bd801106
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
[ROCm/amdsmi commit: 25bcf6af2a]
The script generator.py was not handling all of the anonymous and unnamed structures.
Logic was added to correct the errors seen in the script amdsmi_wrapper.py
Removed adding _ to structure definitions
Change-Id: I51958d23b3da40ec67e883e13dc74feaeaf1d58e
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com>
[ROCm/amdsmi commit: b5887c2f05]
- Update the API names, parameters to return cpu handles and core
handles in the system.
- Update the amdsmi_wrapper.py.
- Update the amdsmi_interface.py to use the processor handles and
core handles API.
Change-Id: Ie24f62f345864f8b6773fdb3c6369993bca7e25b
[ROCm/amdsmi commit: 8308ede9e8]
Match libamd_smi and don't hardcode to "lib", so distros can customize
the library location.
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I0d2ff761975529fc06776c75cefea6907ec1ee8f
[ROCm/amdsmi commit: dd8795b099]
new command includes following arguments:
- current - display the current partition information for the selected
gpu(s)
- memory - display memory partition information for the selected
gpu(s)
- accelerator - display accelerator partition information for the
selected gpu(s)
additional functionality will be added as more partition APIs are added.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
Change-Id: Ica86160139002ef5213d6d4b0e390670aeef01c8
[ROCm/amdsmi commit: 4e2fc2d604]
amdsmi_get_link_topology_nearest() is used to retrieve
the set of GPUs that are nearest to a given device
at a specific interconnectivity level.
Code changes related to the following:
* API
* CLI
* Unit tests
* Examples
Header Unification Change: "/amdsmi/+/1122408"
Change-Id: Id0317797c652c267742513936d321677793ec634
Signed-off-by: Lang Yu <lang.yu@amd.com>
[ROCm/amdsmi commit: 7a557b1c50]
The provides tag is required when the package provides a virtual package.
Package name along with version will be provided by default and the provides tag is not required for this.
Change-Id: I6d42cd1a6e2247e33708a1fa2627897e86099815
[ROCm/amdsmi commit: f00a03ed2b]
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]
Optimizing go shim to default pick amdsmi and other code cleanup in goshim.
Signed-off-by: muthusamy <muthusamy.ramalingam@amd.com>
Change-Id: I0e6a2d28404cbb751d2b6e90c793b359fec9be13
[ROCm/amdsmi commit: e037cde86b]
Small change to add sudo modprobe amdgpu/amd_hsmp suggestion if modules are not loaded. Requested per Maisam, will close https://github.com/ROCm/amdsmi/issues/45
Change-Id: Ia7ffcc99df18296c5c682f2082ff8dd8f007d557
[ROCm/amdsmi commit: 3660724a08]
Revert submission 1125402
Reason for revert: Packaging a tar archive of 3rd party sources
Reverted Changes:
I8908451c0:[SWDEV-482058] Updated Packaging for offline insta...
I764c8bf01:[SWDEV-469278] Lowered PyYAML post install script ...
Change-Id: I3886b5370e352fc33a249c4657d7ed0c1ee75baf
[ROCm/amdsmi commit: 6beec5f3ec]
Revert submission 1125402
Reason for revert: Packaging a tar archive of 3rd party sources
Reverted Changes:
I8908451c0:[SWDEV-482058] Updated Packaging for offline insta...
I764c8bf01:[SWDEV-469278] Lowered PyYAML post install script ...
Change-Id: Ib32fa5b9351b1cfc2a8d453e744c0d00209359eb
[ROCm/amdsmi commit: 9924574cbe]
Adding GO wrappers as part of amdsmi library, so that
amd_smi_exporter can fetch the cpu, gpu data directly from amdsmi library.
Signed-off-by: muthusamy <muthusamy.ramalingam@amd.com>
Change-Id: I8fba57c1d20d21758a1aed38ed2c00c9d5c9ecfa
[ROCm/amdsmi commit: 66c98fd722]
Skip missing vram_str_path and sdma_str_path if sysfs files not created when passing some, but not all, GPUs to a docker image.
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I83b7a62331672810688a94e4023b0ae740436e6d
[ROCm/amdsmi commit: b40b405332]
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]
Moving to TESTS_COMPONENT allows files to be placed
within the amd-smi-lib-test package.
Previously, was put within the amd-smi-lib package,
which will never be triggered for installation with
latest changes.
Change-Id: Id49dbe69bfc7d5bd1af403c28b946fe1edf64d8e
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
[ROCm/amdsmi commit: ede0e6318d]
$ amd-smi version
TypeError: unsupported operand type(s) for |: 'type' and 'type'
---------------
Python3 --versions lower than 3.10
do not support str | None
Using typing Optional and Union, we can create equivalent logic for
str | none
and
str | list | none
Change-Id: I1f4a7ab67333914b33639dc62652881e1127411e
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
[ROCm/amdsmi commit: 5c778cadf1]
amd-smi event is failing to exit as it waits for all threads to complete before exiting. Each thread has to listen for a maximum of 10 seconds prior to exiting in the current implementation.
Lowered individual listen time for _event_thread allowing for a quicker exit while still capturing all events (Looped until escape sequence detected).
Added logging for escape character, not sure if needed but helps confirm that key press was registered.
Change-Id: I916608754798f966980a558342c7c62693252d7f
[ROCm/amdsmi commit: d263b53797]