Gráfico de Commits

916 Commits

Autor SHA1 Mensagem Data
Maisam Arif 68fa5a6550 Correct pyyaml package dependency
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iea055d6af87b465060b0ca8c95f855d101143241


[ROCm/amdsmi commit: 695d4ee065]
2023-11-09 16:16:44 -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
Bill(Shuzhou) Liu 6e132ac949 Sort GPU index using BDF
Sort GPU index based on BDF.

Change-Id: I921fc72e534665bd14b9a45a747f72b24f5ba641


[ROCm/amdsmi commit: 18d6484c67]
2023-11-08 08:58:15 -05:00
Deepak Mewar 1601835a76 Updated another set of esmi python wrappers to amdsmi python library
Change-Id: Ie8b1aacfd0e7923cf608b0f03f48874b16e5aa0d


[ROCm/amdsmi commit: d4f053b527]
2023-11-07 07:28:48 -05:00
Maisam Arif dfdd3459fb Merge "Merge rocmsmi/amd-staging into amd-dev 20231103-1" into amd-dev
[ROCm/amdsmi commit: a8efefaef6]
2023-11-07 04:02:00 -05:00
Maisam Arif 0a20cc33ab Updated License Dates
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Id6fd66b03c602232ecc1a063a534a15fe3a03f56


[ROCm/amdsmi commit: 5dba2f3120]
2023-11-07 03:57:08 -05:00
Galantsev, Dmitrii 49ab415506 Merge rocmsmi/amd-staging into amd-dev 20231103-1
Change-Id: I82540740892b31232dc9902022b34001ef5b542c
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 9cab8c035f]
2023-11-03 17:58:30 -05:00
Galantsev, Dmitrii f66e4585c7 Fix issues introduced in 41f5a26408
- std=c++.. is not required because CMAKE_CXX_STANDARD is set
- nullptr check breaks the test because we rely on nullptr as an api for
  checking feature availability.
- enum number setting is unnecessary

Change-Id: I393e6dd3f292b7fa4198302f140c0443ba5e50f5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: a099f0682a]
2023-11-03 17:54:35 -05:00
Deepak Mewar 5845c75e51 Updated esmi python wrappers to amdsmi python library
Change-Id: Icf2576926d3649929d2aa580b476a013204daf95


[ROCm/amdsmi commit: 6d46e20598]
2023-11-03 04:58:19 -04:00
Maisam Arif 11b1e5fb42 Handle GPU Not detected
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I988b0dddde23b83c1a8e402233b6aa08ce55d0c7


[ROCm/amdsmi commit: 9bfebc6f1c]
2023-11-03 04:58:11 -04:00
Galantsev, Dmitrii 1128c1f246 DOCS - Fix 'failed to reach any of the inventories'
Change-Id: I7edd1fad17bd0f3e0946a6712410cf6549afc729
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: fc02ebc5f2]
2023-11-03 03:59:48 -04:00
Galantsev, Dmitrii 9b3d9f61b3 CMake - Bump version
Change-Id: Idc3c07b5f37309d03b46df7a6400793bc8953f61
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 1010787865]
2023-11-03 03:57:35 -04:00
Galantsev, Dmitrii e5d0ba249d Merge rocmsmi/amd-staging into amd-dev 20231103
Change-Id: Ie70ab54a63b25649b6b9d30620c5546dc66cd766
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 513dd8a445]
2023-11-03 02:55:02 -05:00
Galantsev, Dmitrii ff295e4648 CMake - Bump version
Change-Id: Ibe62c0059262bcb9937ae856b796392b1fe362a0
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 7d629c5959]
2023-11-02 18:26:00 -05:00
Maisam Arif 5b6d22b24e SWDEV-425457 - Updated Sphinx docs to include ESMI
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie7669c9f94703e5c5cdc65314cbf30e8b587d0f1


[ROCm/amdsmi commit: f061aa4be5]
2023-11-02 17:39:56 -04:00
Maisam Arif 7dc9618e77 SWDEV-403153 - Fixed eeprom hex casting
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I46531bd9ae60947539d4b95e5b21c7008ec0b3ea


[ROCm/amdsmi commit: 8b0b0490d1]
2023-11-02 15:34:06 -04:00
Maisam Arif 517ea90c12 SWDEV-426130 - Fixed Decimal Firmwares & Readme
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I850105561be91a2c2581106371af9fab1fd8fa98


[ROCm/amdsmi commit: 312732aa8a]
2023-11-02 15:34:06 -04: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
Galantsev, Dmitrii 8535f6993d Don't crash [un]install scripts on python failure
Change-Id: Icfbcc647bda94dd2ff2f65016de5c80af5d1ec79
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 08268ba1c1]
2023-11-02 15:15:27 -04: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
Maisam Arif cf0098c16f SWDEV-417117 - Added Cache Flags
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I78836ba5f87c2859b82f17a7564df6f99ac77ad7


[ROCm/amdsmi commit: aeef485034]
2023-11-02 05:38:44 -05:00
Bill(Shuzhou) Liu e05f594cba Support cache type in cache info
Add the cache type to the cache info.

Change-Id: Ic13ca9640b65d2b414eeebe7b884530f2036aac8


[ROCm/amdsmi commit: 56b246cc3c]
2023-11-02 04:53:38 -05: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
Charis Poag c4efbff219 Fix GPU Metric content revision check
Change-Id: I94ff4732be01214591b635357d9a62eb7d5192a0
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/amdsmi commit: b49e82a4f4]
2023-10-31 17:42:02 -05:00
Oliveira, Daniel f13cbb8d10 amd_smi_lib: Fix missing sym link causes segfault
Changes AMDSmiDrm to use the versioned library for its dependency

Code changes related to the following:
  * AMDSmiDrm::init()

Build changes related to the following: None

Change-Id: Ibd5b3dd88f679912acdfa292502003f58b28daf5
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>


[ROCm/amdsmi commit: e20fd12934]
2023-10-31 10:33:34 -04:00
Bill(Shuzhou) Liu 4a67734b65 Query the CPU and GPU link type
The rsmi_topo_get_link_type() is extended to support query the CPU
and GPU link type by passing dv_ind_dst as 0xFFFFFFFF.

Change-Id: I1f212a01e8120adb70a08ab772fa9faaaecefa29


[ROCm/amdsmi commit: de5bc164de]
2023-10-31 10:17:24 -04:00
Galantsev, Dmitrii 91ef279bc4 Fix python setup.cfg on rhel8
Change-Id: If06fd0e6f3a5574a9f318de23b9eaa712e1c03bb
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 6d7376a793]
2023-10-30 22:28:23 -05:00
Maisam Arif 5e18c29b3b Update python wrapper with esmi updates
Change-Id: I0274821f6525e60f76ec9ba9e4b2a50b19231031
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 4dd7e8a41f]
2023-10-30 20:10:44 -05:00
Deepak Mewar 37f1dc3441 Updated README for esmi python wrappers
Change-Id: I95d345c12040a2163131bd48c5a687ccf734edd0


[ROCm/amdsmi commit: 78b2db036b]
2023-10-30 20:59:21 -04:00
Deepak Mewar a09863f550 Esmi Auxillary API wrappers removed from amdsmi library
that are called during amdsmi inititalization
    amdsmi_get_cpu_family,
    amdsmi_get_cpu_model,
    amdsmi_get_cpu_threads_per_core,
    amdsmi_get_number_of_cpu_cores,
    amdsmi_get_number_of_cpu_sockets

Added amdsmi_get_cpucore_info to amdsmi library

Change-Id: Ib88d580e1d85afdf578963247e585cfae05c58ad


[ROCm/amdsmi commit: 28f6383639]
2023-10-30 20:59:21 -04:00
Galantsev, Dmitrii 21fa9c0950 SWDEV-424983 - Fix supported metrics api checks
Change-Id: I5c95bb3057dd7546036cbd87bbf7025469d2b3d5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 88d5e011e6]
2023-10-30 17:28:59 -04:00
Maisam Arif 1fd44d67f4 Parser & Command args cleanup
Change-Id: I015acc429acc6172845667fafb8f706d0a83bec1
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 17ec594543]
2023-10-27 19:31:07 -04:00
Maisam Arif b14d1ca543 SWDEV-410051 - Updates to board_info struct & CLI
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8735d8965140ee5da0c35106b388af1dca87ec71


[ROCm/amdsmi commit: 2b4637ff9f]
2023-10-27 16:52:56 -05:00
Maisam Arif a5e1a85a43 Type & import clean-up
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie09b583a0eb930afc429904e84fe46433ef33b3b


[ROCm/amdsmi commit: 741839d8e4]
2023-10-27 17:48:43 -04:00
Maisam Arif c1fb7e3dc3 Fixed firmware version from int to hex
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie09c5b14f108f1eb5c3fd60fe37fb731173a9478


[ROCm/amdsmi commit: 6d59e9b71d]
2023-10-27 17:48:27 -04:00
Charis Poag 41f5a26408 Partition EBUSY with RSMI_STATUS_BUSY & invalid GPU Metrics check
* Updates:
   - [API/CLI] rsmi_dev_*_partition_set &
     rsmi_dev_*_partition_reset - exposed RSMI_STATUS_BUSY for
     EBUSY writes + cleaned up accidental map insertions
     (maplookup[] can insert values that are not in the map,
     map.at(key) fixes this potential issue)
   - [API] rsmi_dev_gpu_metrics_info_get() - returns
     RSMI_STATUS_NOT_SUPPORTED for unsupported metric tables
     outside of 1v1/1v2/1v3
   - [API] writeDevInfoStr() - exposes RSMI_STATUS_BUSY for
     EBUSY write errors; kept backward compatibility
     for other writes which do not care about these states
   - [API] rsmi_dev_od_volt_info_get()
      & rsmi_dev_od_volt_curve_regions_get() have better logging
     + Expose more details on why they are erroring
   - [Utils/logs/example] Expose AMD GPU gfx target version to aid in
     system troubleshooting
   - [Utils] Added test methods that look at od volt
     freq & regions into here - for easier access across
     several tests
   - [Utils] Updated getRSMIStatusString(new argument - fullstatus;
     default to true for backwards compatibility)
     -> true shows shortened RSMI STATUS response
   - [Utils] Added splitString to cut out noisy return responses
     (used in getRSMIStatusString(), when fullstatus = true)
   - [Utils] Added getFileCreationDate() to expose build date
     of the library - helpful for local builds or experimental builds
   - [Utils] Macro cleanup
   - [Example] Added a few gpu_metric checks - helpful for upcoming
     updates
   - [Device] SYSFS/DebugFS - now have better r/w displayed in logs
   - [LOGS] Expose library build date - see above for details
   - [Tests] Add more warnings/errors to test builds
   - [Tests] Moved up Partition tests for ordered test runs - helped
     identify issues with GPU BUSY writes
   - [Tests] compute_partition_read_write - handles RSMI_STATUS_BUSY
     with waits for busy status found & cleaned up how we checked
     for partition changes - with RSMI responses exposed more clearly
   - [Tests] perf_determinism - multi gpu now properly runs through
     with full resets as needed
   - [Tests] volt_freq_curv_read - better error handling with more
     verbose output

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


[ROCm/amdsmi commit: 57b6135e54]
2023-10-27 14:52:02 -04:00
Galantsev, Dmitrii 33bfb69a7d CMake - Configure __version__ for python scripts
Change-Id: I646dc27b5dc93e8dde38ff09ae9c826dfc7faaa7
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 336ef57ed8]
2023-10-25 18:03:18 -05: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 ef2c6cb157 Enabled amd-smi auto completion using argcomplete
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I0ea48b1b3a10e738d1fe91db85bc61ad51b85de2


[ROCm/amdsmi commit: d6abcfa92d]
2023-10-24 12:39:12 -04:00
Étienne Mollier 791ad2407c CMake - Set rocm_smi64 soversion to 1
Upstream soversion is at 5 for a while, but Debian's soversion has been set to
 1 in the beginning of the rocm-smi-lib package.  This is probably erroneous,
 and the library should probably be better off being synchronized with upstream
 so there is some kind of ABI compatibility between the two distributions.
 .
 FIXME: please use upstream soversion next time an ABI breakage justifies an
 SOVERSION bump, instead of just incrementing the present version by one.
Author: Étienne Mollier <emollier@debian.org>
Forwarded: not-needed
Last-Update: 2023-09-17

Change-Id: I6c4d28bd26889359c0b83c474d5ae58a81741cf4
Co-authored-by: Étienne Mollier <emollier@debian.org>
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 1775ae4b8d]
2023-10-23 16:41:26 -05:00
Étienne Mollier 56794eb847 CMake - do not enforce -fPIE.
When built with LTO enabled, the linking of liboam.so chokes on the
following error, which is somewhat similar to the Debian bug #1030876
affecting PA-RISC, although the symptoms subtly differs in that it
suggests to build using -fPIC:

	/usr/bin/ld: /tmp/cc0wF8Kx.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `_ZTVSt9exception@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC

The -fPIC argument is passed appropriately down to the build command,
however it looks to be erased by the late introduction of -fPIE flag
by upstream build system.  Erasing this flag allows the build to go
through, both with LTO and on PA-RISC.

Bug: https://github.com/RadeonOpenCompute/rocm_smi_lib/issues/111
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015653
Change-Id: I8b35fd4b62cfa1a9ddb145362464df5dd276e2f5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: c4c19e7917]
2023-10-23 16:37:37 -05:00
Galantsev, Dmitrii 942d30e078 CMake - Prevent failure to build on non-amd64 targets
Change-Id: Ifaa59fb672ea01c07cffea6cd2429bec15a5deaf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>

Co-authored-by: Étienne Mollier <emollier@debian.org>
Change-Id: Ia691ab1db0061f04662e10e112da4b9ef06c4256


[ROCm/amdsmi commit: 1cf05dd9c7]
2023-10-23 16:36:17 -05:00
Galantsev, Dmitrii d94f4310b2 README - Clean-up cli readme
Change-Id: I665cc5a48a240f0d2289439a4877c9f667b19851
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 275108f5b9]
2023-10-23 13:17:04 -05:00
Maxime Chambonnet 714c6b1a51 Updated README.md with standard Markdown tables, cleaned a bit header levels.
Change-Id: Ibd6e382413d7667a5a823ac69620a2cfb7046bc5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 8cfcb51550]
2023-10-23 13:11:18 -05:00
Maisam Arif 70558b418a Fixed Compute & Memory Parition CLI error
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ic36d567f9a97ceb7930653692b6c5fd60814ac38


[ROCm/amdsmi commit: 29afbbcbe7]
2023-10-18 17:58:02 -05:00
Sam Wu 8dfded3dc4 Update rocm-docs
Change-Id: I30633c9cd29bc58b0c48086d5f493204f3d6ffd8
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 1de63ce506]
2023-10-18 14:09:26 -05:00
Maisam Arif abf84b41c3 Added set & reset --power-cap
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I9fa6378cfcdb2ad9f8406c51d885209605330627


[ROCm/amdsmi commit: a1b2fb5e0e]
2023-10-17 02:50:22 -05:00
Maisam Arif b1d51b59ce Fixed ras error output formatting
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I7fb4d13ee7d72e2e5e95c10c19491b879df07f33


[ROCm/amdsmi commit: fc025797a0]
2023-10-17 02:42:01 -05:00
Maisam Arif 02bd64a893 CLI Fixes & ESMI import handling
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I08e66d2bdbe37064fd73f42eeb9199f1e3bc3404


[ROCm/amdsmi commit: 6ec87b6a23]
2023-10-16 19:29:17 -05: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