Граф коммитов
13 Коммитов
Автор SHA1 Сообщение Дата
Joseph Greathouse ea5ce46fb4 Add better PCI ID backup in rocm_agent_enumerator
The PCI ID backup method in rocm_agent_enumerator, where the
tool uses lspci to find all AMD GPU devices in the system and
manaully match them to gfx version, is extremely outdated. The
PCI ID list did not include anything after Vega 10, and the
actual call to lspci no longer returned anything due to some
missing conversions.

The patch adds all GPUs that might be needed by ROCr up through
Navy Flounder. The PCI ID to gfx matching pulls from the amdgpu
driver and libhsakmt.

Change-Id: I58b77bb6aa631f575352fc444d2542f265909706
2021-10-29 18:45:23 -05:00
Yi Qian e1df81cb8f Add a new rocm_agent_enumerator option '-name' which lists target names obtained from the output of rocminfo.
Change-Id: Iea366c744e2f03a46fd5c902ae4faa94b96f6942
2021-10-29 16:23:01 -05:00
Matt Arsenault 5d6be5b808 Refer explicitly to python3 in shebang line
On Ubuntu 20.04, there is no more python or python2. Currently I get
this: /usr/bin/env: ‘python’: No such file or directory

Change-Id: Ib310b8aa7c1bd62973ef3cc8bcaf571831ad4435
2020-05-04 09:40:11 -04:00
Chris Freehill 373d8abdec Fix rocm_agent_enumerator on RHEL
This fixes SWDEV-231760

Change-Id: If704c8ff76548e10ddbda1b5c1ad0c28df7ab6f0
2020-04-16 16:39:51 -05:00
Chris Freehill 70ebe13a89 Fix ennumerator id parser.
Fixes SWDEV-226018

Change-Id: I14144cdd316c19fe29dcd70b406a52aac8a741cd
2020-03-06 19:50:35 -05:00
Wilfried Holzke a134847069 Added documentation for the new env var.
Change-Id: I0407a5dd36e91a1ea205ce4dda9a7fca906e1266
2019-12-16 10:38:47 -06:00
Wilfried Holzke 12736c6fd8 Added env var to set target.lst
Change-Id: Ie6aefba6ef79360e65d4a64a6be1ec50e59b5741
2019-12-16 10:37:33 -06:00
justxi cfbbb52395 Add files via upload 2019-06-19 13:44:12 -05:00
Gregory Stoner fd277f36c0 Update rocm_agent_enumerator 2017-12-23 13:09:02 -06:00
Gregory Stoner 57a7080ebb Update rocm_agent_enumerator 2017-12-23 13:01:11 -06:00
Gregory Stoner f5334a2ba3 Add support for RX580 2017-12-23 13:00:37 -06:00
Wen-Heng (Jack) Chung 6d1234484a Improve error handling logic 2017-11-09 13:20:45 -06:00
Wen-Heng (Jack) Chung 8b018900f6 Initial commit to introduce rocm_agent_enumerator into rocminfo
This is a python port of rocm_agent_enumerator, which is used by HIP/HCC to
determine available AMDGPU targets on a system.

Its previous implementation was written in C++ which makes it somewhat hard to
deploy onto different distros / architectures. A python port should remove such
issue.
2017-11-09 12:33:53 -06:00