38 コミット

作成者 SHA1 メッセージ 日付
Flora Cui a433e6f48d rocminfo: early detect absence of unsupported GPU in wsl (#1317)
Add an early check in WSL to detect when no supported GPU is available.
otherwise rocm_agent_enumerator will keep retrying rocminfo for one
minute, causing unnecessary delay.

Signed-off-by: Flora Cui <flora.cui@amd.com>
Co-authored-by: harkgill-amd <harkgill@amd.com>
2025-10-21 11:15:44 +08:00
David Yat Sin b7095616b9 fix: fix -Wunused-parameter (#1017)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-09-22 11:12:44 -04:00
David Yat Sin 6f09eb3418 rocminfo: unset executable flag (#314)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-08-12 21:13:45 -04:00
Aaron Liu 635e20c781 Add ROC-DTIF backend support for rocminfo
Signed-off-by: Aaron Liu <aaron.liu@amd.com>


[ROCm/rocminfo commit: cd0f8c6173]
2025-05-14 01:16:21 +08:00
lyndonli 157533a28b Remove WSL checks for displaying UUID and BDFID
Signed-off-by: lyndonli <Lyndon.Li@amd.com>


[ROCm/rocminfo commit: 38e9f399a2]
2025-03-26 13:26:34 +08:00
Longlong Yao 7c4a146742 Use /dev/dxg to detect wsl environment
Since wslinfo does not exist in docker running on wsl,
change the way to detect wsl environment.

Change-Id: I215eb985a227caeef47483cd51818c84bf1d8a4c
Signed-off-by: Longlong Yao <Longlong.Yao@amd.com>


[ROCm/rocminfo commit: 22ed708c39]
2024-12-16 20:18:53 -08:00
Alex Xu 6cc8f7ec13 rocminfo fails when amdgpu is built into the kernel
When amdgpu is built into the kernel, /sys/module/amdgpu/initstate will not be created even when the driver is functional. However, test shows /sys/module/amdgpu will be present. Adding an additional check for /sys/module/amdgpu when /sys/module/amdgpu/instate is not present.

Change-Id: Ie5c67c7e1eff8ac1683b211aaec802d0d342aeeb


[ROCm/rocminfo commit: c6f7a17c85]
2024-09-24 10:59:22 -04:00
David Yat Sin eb5491e777 Add queries for xnack_enabled and vmm support
Change-Id: I7200fdc4c3086e92d60fbf785be89fb5d441409c


[ROCm/rocminfo commit: 9537420254]
2024-09-05 10:32:27 -04:00
Jiadong Zhu 33cb32bf97 Do not print to console for which command
The command which would print warnings on some
platform. Redirect both stdout and stderr to
/dev/null while running the command.

Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Change-Id: Ibc377681a31a14a3e306ab4fcb14d8d0c853fa86


[ROCm/rocminfo commit: d1efacb47f]
2024-05-22 09:43:21 -04:00
Jiadong Zhu a0d215c209 Add WSL support for rocminfo
This includes detecting the running environment,
skipping kfd dependency check if in wsl platform
and disabling unavailable information on wsl.

V2: Use wslinfo to detect the environment.
V3: Add back some queries for wsl, as the not_supported
value shall be returned from hsa_runtime.

Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Suggested-by: Tianci Yin <tianci.yin@amd.com>
Change-Id: I686d551c795cb5c5532591623022856f59512205


[ROCm/rocminfo commit: 049ab55393]
2024-05-09 14:37:15 +08:00
David Yat Sin 5257adde87 Add query for memory properties
Change-Id: I07c084c56b15c499ec564860b2a514e909ab7ca4


[ROCm/rocminfo commit: 7e159e6d76]
2024-02-13 14:28:30 -05:00
David Yat Sin 91bb229de7 Add query for HSA Ext interface version
Change-Id: Ibfac8c23b173793f7302f926c4695a1f99b328fe


[ROCm/rocminfo commit: 7b59f24005]
2024-01-04 19:53:02 +00:00
Gregory Rodgers 5aabc80b82 Print amdgpu version
Change-Id: Ibab6e51489d436b66c3bac4bbd0f52a400ad6b0b


[ROCm/rocminfo commit: b249107c6a]
2023-10-03 18:48:47 +00:00
David Yat Sin 4bb13008b4 Add recommended granule query
Change-Id: I7eb10e267d0272759321ee30feddf2d6464d9443


[ROCm/rocminfo commit: f1f463d818]
2023-08-25 01:04:34 +00:00
David Yat Sin 69f90c8f05 Adding coherent host access query
Change-Id: I34030ab193b5e7890cf10c6a0c6ad493ac0e0283


[ROCm/rocminfo commit: 23c483ca65]
2023-08-14 20:21:23 +00:00
David Yat Sin cf369d6388 Support extended scope fine-grained memory
Add display flag for extended scope fine-grained memory

Change-Id: I73f965e12a7a68afcd71f93a7b6a1af453de0510


[ROCm/rocminfo commit: 3f97bbda93]
2023-07-20 22:30:16 +00:00
David Yat Sin 47fafdac89 Add query to check DMABuf support
Add query to check whether DMAbuf export is supported on this system

Change-Id: I28caa87b67135d67ffcc94695e4656e7b691d259


[ROCm/rocminfo commit: 2d34dc31f2]
2023-05-29 17:38:10 +00:00
David Yat Sin d2f2927350 Add query for mwaitx support
Change-Id: I775234ff570e3cedacd68adb4617e62dce76bd9e


[ROCm/rocminfo commit: eb1283f377]
2023-03-28 12:11:55 -04:00
David Yat Sin 34499a0855 Add display for IOMMU Support
Change-Id: I5af127ef1f9c1ae4b3b86b9e38272eb4f032191a


[ROCm/rocminfo commit: 2c92e790f0]
2023-01-20 02:56:45 +00:00
David Yat Sin 6c54d189a3 Add fields for CP firmware and SDMA engine ucode
Change-Id: I796b5a1c1e8be7fedda6207bcb740e3956aef8b2


[ROCm/rocminfo commit: c6b1707d0e]
2023-01-05 23:42:03 +00:00
Johannes Dieterich 2f3b22dc90 Fix rocminfo when run within docker environments
Currently, rocminfo will fail when executed inside a docker container
due to being unable to lsmod inside docker. This has impacts on
rocprofiler use.

Fix this behavior by querying initstate of the amdgpu module from
/sys/module/amdgpu instead. If initstate is marked "live" everything if
fine - error out with either "not loaded" (initstate file does not
exist) or "not live" (initstate file does not contain "live" string).

Change-Id: I6f2e9655942fd4cf840fd3f56b7d69e893fa84d7


[ROCm/rocminfo commit: 94b4b3f0a6]
2022-11-21 18:11:31 +00:00
Sean Keely 2845859126 Correct include paths for new directory layout.
Depends-On: I5e11e72848633dcc749d1e92705a8e3be67f793d
Change-Id: If743d015bb9c7c6fb179e259e2d4eb69be60e383


[ROCm/rocminfo commit: 4f1b5ed4b8]
2022-05-06 01:15:21 -04:00
Mike Li 337b190219 Add ASIC revision
Signed-off-by: Mike Li <Tianxinmike.Li@amd.com>
Change-Id: I8f6bbf39e4cf85bb03fd6c0de7afe5f9e6666ba5


[ROCm/rocminfo commit: b6dc27f0b3]
2022-03-16 00:51:33 -05:00
Shweta Khatri 78a6413986 Fixed some errors in rocminfo reported by lint tool
Change-Id: Ie7852c2003c10847226a5df23c4e85fbe89dad43


[ROCm/rocminfo commit: cf92f649ab]
2022-02-16 17:05:21 -05:00
Sean Keely 512dee81c5 Close /dev/kfd after access check.
Cleanup dangling file handle.

Change-Id: I37bc42a2ffb7122f441cbf8a09c141d4396db928


[ROCm/rocminfo commit: 7766360dd6]
2021-10-29 20:23:32 -05:00
Chris Freehill 5aed7f55eb Exit earlier if prerquisites are not met
Change-Id: I1c861234986013742ce606ecffb5d9a7db697d05


[ROCm/rocminfo commit: 10da0a71da]
2020-11-11 20:49:26 -05:00
Ashutosh Mishra 59b2c3308d Adapting to latest HSA changes
JIRA : SWDEV-234471
With this change rocminfo exe shall be created using using hsa-runtime64::hsa-runtime64 which
internally decides whether static or shared libs based on its cmake build options

S. Keely:
Update patch to use find_package for rocr dependency.

Removed deadcode now supported by find_package.

Removed "hsa/" prefix from include statements since find_package
points to the target (ie rocr) include directory.

Removed typedef on structs due to new clang-11 warning.

Adapting to the comments : Removed PATHS for hsa find_package

Change-Id: I1ec65cdbce3085e44f1839da196eb4ae5c9ff30d


[ROCm/rocminfo commit: 605b3a5105]
2020-07-09 18:38:46 +05:30
Chris Freehill 2ca29819a6 Correct spelling of output message
Change-Id: Id7789e622ea76cc53c3be719798c3c1f90ede6e2


[ROCm/rocminfo commit: 7624cc1008]
2020-05-01 13:22:50 -04:00
Matt Arsenault de4494c3ed Change check for /dev/kfd permissions
On newer kernels, it seems the group was changed from "video" to
"render". The check for video group misled me for quite some time, so
relax this check. Rather than specifically checking for video group
ownership, first see if /dev/kfd can be open as read-write. Then
diagnose whether the user belongs to the group that owns it, rather
than hardcoding the video group.

Change-Id: I9e65427363e9a5cdba802e09cee2f40fb80520ed


[ROCm/rocminfo commit: cd4b7cea85]
2020-05-01 10:14:21 -04:00
Ramesh Errabolu 3419887e38 Extend rocminfo to print UUID of ROCm devices
Change-Id: I258962046e6d05dda91a8c48af646e50500b2d53


[ROCm/rocminfo commit: a1b4a580fc]
2020-04-13 20:42:43 -05:00
Wilfried Holzke ead25aa1a5 Fixed sizeof(err_val) to return the number of characters in the array
Change-Id: I7e4f04d10b2f9cc9dbed2431e53b5ebc540acf56


[ROCm/rocminfo commit: 6f140e5391]
2019-08-21 16:12:55 -05:00
Chris Freehill 2fe33cf4e3 Correct check for video group membership
* Continue with rocminfo even if video and kfd check fail.
* Color code informational lines (white) and warnings (red)

Change-Id: I739034c932fffca0924abc93ae9a929664a3e182


[ROCm/rocminfo commit: 141592e4f3]
2019-07-15 23:14:12 -05:00
Ramesh Errabolu 58744a20cc Improve error message reporting (#13)
[ROCm/rocminfo commit: 84039ef53f]
2019-06-19 13:44:12 -05:00
Chris Freehill c4697c80d9 Add some missing HSA info. fields
[ROCm/rocminfo commit: 7b98323823]
2019-06-19 13:44:12 -05:00
Chris Freehill b2f3beb991 Add hex representation of some values to output
[ROCm/rocminfo commit: ad54c50aba]
2019-06-19 13:44:12 -05:00
Siu Chi Chan c00f8b5fc7 change naming from Dim[n] to (x,y,z)
print out the max grid/group size before the "per Dimension" info


[ROCm/rocminfo commit: 6ccaea7580]
2019-06-19 13:44:12 -05:00
Siu Chi Chan a22679c24d fix incorrect tyep casting for workgroup_max_dim and grid_max_dim
[ROCm/rocminfo commit: 590f612fd5]
2019-06-19 13:44:12 -05:00
Chris Freehill 1b86c30dfa Rename to rocminfo
Change-Id: Ifd0ba9aaa4078dc2771e15bb254ba1c4ec2acf1e


[ROCm/rocminfo commit: 5c6e06c80f]
2017-11-03 14:04:51 -05:00