Sean Keely
e32a4d9bed
Don't touch CMAKE_CXX_FLAGS.
...
Cmake manages CMAKE_CXX_FLAGS in standard ways from user inputs,
env vars, and target properties. Use target properties for our
options and let cmake handle the rest.
Change-Id: I20ef738e4df7880258d770f4ec13c09d8b323fba
2021-10-29 16:23:01 -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
Ashutosh Misra
2bd7657503
Adding package dependency
...
SWDEV-260294:Rocminfo shall explicitly depend on hsa-rocr for package installation
Signed-off-by: Ashutosh Mishra <ashutosh.mishra@amd.com >
Change-Id: I9a6d1691cd5a821f135a1d1cff599e9a2c40d06f
2021-10-29 16:23:01 -05:00
Chris Freehill
102f22f974
Append CXXFLAGS env. variable to CMAKE_CXX_FLAGS
...
This facilitates address sanitizer builds via env. variable.
Change-Id: I69fc9a5782ca80d7bdbf2b1ec0c89cccc4a5ca11
2021-10-29 16:23:01 -05:00
Icarus Sparry
1452f8fa24
Add dependency on rocm-core
...
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com >
Change-Id: I2b0e330698ed19a2474734e33a1215644ec6f1cc
2021-07-19 21:25:55 +00:00
Chris Freehill
10da0a71da
Exit earlier if prerquisites are not met
...
Change-Id: I1c861234986013742ce606ecffb5d9a7db697d05
2020-11-11 20:49:26 -05:00
Ashutosh Mishra
e7b43b970f
Standardizing Package name
...
Enables standards compliant package naming for debian and rpm
Signed-off-by: Ashutosh Mishra <ashutosh.mishra@amd.com >
Change-Id: I38af7b31f0c17d0c38ea7c2eb143770e7f1d74b2
2020-10-24 10:08:00 +05:30
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
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
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
Chris Freehill
373d8abdec
Fix rocm_agent_enumerator on RHEL
...
This fixes SWDEV-231760
Change-Id: If704c8ff76548e10ddbda1b5c1ad0c28df7ab6f0
2020-04-16 16:39:51 -05:00
Ramesh Errabolu
a1b4a580fc
Extend rocminfo to print UUID of ROCm devices
...
Change-Id: I258962046e6d05dda91a8c48af646e50500b2d53
2020-04-13 20:42:43 -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
Chris Freehill
9b0cd9e428
Fix for running rocminfo on wider variety of CPUs
...
Change-Id: I7acc46d2fec97ae1026643f79e59dd632444ce2e
2019-12-09 14:59:57 -06:00
Chris Freehill
831f3ab124
Update README to include instruction to fetch git tags
...
Also, slight reformatting.
Change-Id: I7c35343556e48cadccd266b41465fb5ea04ace29
2019-12-09 14:51:53 -06:00
Chris Freehill
2afaae2fbe
Require >= CMake3.5 instead of 2.8
...
Change-Id: I5e0045fad2ecc028c2dcb9fd78805dfb42a9e2ed
2019-12-09 11:57:09 -06:00
Craig Andrews
f1181e0569
Install to standard locations using GNUInstallDirs
...
Change-Id: I6bafae15d2a0dfb70389673e03b6f72737786501
2019-08-22 23:02:30 -05:00
Chris Freehill
9842beb770
Update versioning to new uniform standards
...
Change-Id: I93eb3170fedeee98caf7b3fd8f63a8c0fef5fd78
2019-08-22 12:01:49 -05:00
Craig Andrews
04dc08664e
Use CACHE variables, allow overriding ROCR_LIB_DIR/ROCR_INC_DIR
...
CACHE variables allow for variables to be documented, and
ROCR_LIB_DIR/ROCR_INC_DIR should be overridable as they'll
have different values on different Linux distributions.
Change-Id: I0bba633c184df2da55bdbe6aabbd53346d098b83
2019-08-22 08:02:31 -05:00
Craig Andrews
9f5349806a
Messages indicating fatal errors should be fatal
...
Change-Id: Ib071d3f6ed216c817daa637fc784680ef9d123f8
2019-08-21 22:28:54 -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
Chris Freehill
43f664436d
Undo previous commit of github CMakeLists.txt file
...
Change-Id: Ic650b913377112bff6c25176d9446311f33f6c78
2019-06-22 16:29:42 -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
Anthony Cowley
ca841958af
cmake: fix typo in ROCR_LIB_DIR detection
2019-06-19 13:44:12 -05:00
justxi
cfbbb52395
Add files via upload
2019-06-19 13:44:12 -05:00
James Edwards
26378662db
Update CMakeLists.txt
2019-06-19 13:44:12 -05:00
James Edwards
8c81b1146f
Update README.md
2019-06-19 13:44:12 -05:00
James Edwards
99adf5d85f
Update README.md
2019-06-19 13:44:12 -05:00
James Adrian Edwards
a8dc4b3e37
Add dependencies and support for rocm-cmake style packaging.
2019-06-19 13:44:12 -05:00
James Edwards
d34b716a08
Merge pull request #2 from RadeonOpenCompute/install-packaging
...
Add install and packaging to CMakeList.txt file.
2018-02-28 16:59:10 -06:00
James Edwards
f99ef9da4f
Add install and packaging to CMakeList.txt file.
2018-02-28 16:57:14 -06: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
ac4c043ba4
Merge pull request #1 from RadeonOpenCompute/feature_rocm_agent_enumerator
...
Initial commit to introduce rocm_agent_enumerator into rocminfo
2017-11-13 10:39:41 -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
Chris Freehill
fa0eae0dbe
Merge https://github.com/RadeonOpenCompute/rocminfo into amd-master
...
Change-Id: I2a4215026eedeee1c9cfb641fce15e1af0e9a673
2017-11-08 20:29:15 -06:00
Chris Freehill
0da670409f
Add README.md and License.txt
...
Change-Id: I02b43a10f4f88a73c7e4e63221bec32d0d1d5bf6
2017-11-08 11:12:00 -06:00
Chris Freehill
6b014b2496
Add README.md
...
Change-Id: I02b43a10f4f88a73c7e4e63221bec32d0d1d5bf6
2017-11-08 08:05:08 -06:00
Chris Freehill
5c6e06c80f
Rename to rocminfo
...
Change-Id: Ifd0ba9aaa4078dc2771e15bb254ba1c4ec2acf1e
2017-11-03 14:04:51 -05:00
Robert Gregory
5292ddc602
Initial empty repository
2017-10-23 15:29:48 -04:00