Commit Graph

19 Commits

Author SHA1 Message Date
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
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
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
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 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
Chris Freehill 43f664436d Undo previous commit of github CMakeLists.txt file
Change-Id: Ic650b913377112bff6c25176d9446311f33f6c78
2019-06-22 16:29:42 -05:00
Anthony Cowley ca841958af cmake: fix typo in ROCR_LIB_DIR detection 2019-06-19 13:44:12 -05:00
James Edwards 26378662db Update CMakeLists.txt 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 f99ef9da4f Add install and packaging to CMakeList.txt file. 2018-02-28 16:57:14 -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 5c6e06c80f Rename to rocminfo
Change-Id: Ifd0ba9aaa4078dc2771e15bb254ba1c4ec2acf1e
2017-11-03 14:04:51 -05:00