Graf commitů

13 Commity

Autor SHA1 Zpráva Datum
Chris Freehill 10da0a71da Exit earlier if prerquisites are not met
Change-Id: I1c861234986013742ce606ecffb5d9a7db697d05
2020-11-11 20:49:26 -05:00
Ashutosh Mishra 605b3a5105 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
2020-07-09 18:38:46 +05:30
Chris Freehill 7624cc1008 Correct spelling of output message
Change-Id: Id7789e622ea76cc53c3be719798c3c1f90ede6e2
2020-05-01 13:22:50 -04:00
Matt Arsenault cd4b7cea85 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
2020-05-01 10:14:21 -04:00
Ramesh Errabolu a1b4a580fc Extend rocminfo to print UUID of ROCm devices
Change-Id: I258962046e6d05dda91a8c48af646e50500b2d53
2020-04-13 20:42:43 -05:00
Wilfried Holzke 6f140e5391 Fixed sizeof(err_val) to return the number of characters in the array
Change-Id: I7e4f04d10b2f9cc9dbed2431e53b5ebc540acf56
2019-08-21 16:12:55 -05:00
Chris Freehill 141592e4f3 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
2019-07-15 23:14:12 -05:00
Ramesh Errabolu 84039ef53f Improve error message reporting (#13) 2019-06-19 13:44:12 -05:00
Chris Freehill 7b98323823 Add some missing HSA info. fields 2019-06-19 13:44:12 -05:00
Chris Freehill ad54c50aba Add hex representation of some values to output 2019-06-19 13:44:12 -05:00
Siu Chi Chan 6ccaea7580 change naming from Dim[n] to (x,y,z)
print out the max grid/group size before the "per Dimension" info
2019-06-19 13:44:12 -05:00
Siu Chi Chan 590f612fd5 fix incorrect tyep casting for workgroup_max_dim and grid_max_dim 2019-06-19 13:44:12 -05:00
Chris Freehill 5c6e06c80f Rename to rocminfo
Change-Id: Ifd0ba9aaa4078dc2771e15bb254ba1c4ec2acf1e
2017-11-03 14:04:51 -05:00