diff --git a/MAINTAINERS.md b/MAINTAINERS.md new file mode 100644 --- /dev/null +++ b/MAINTAINERS.md @@ -0,0 +1,5 @@ +This file is used to indicate responsibility for the maintenance of this package. Individuals on this list should be the sole modifiers of the package, excluding cases where the Solus Team may need to perform necessary rebuilds, upgrades, or security fixes. This list should not be used for any direct contact usage. If you believe this package requires a package update, follow documentation from https://getsol.us/articles/packaging/request-a-package-update/en/. In the event this package no longer becomes sufficiently maintained, Core Team reserves the right to request a new maintainer or remove this package from the repository. + +- Jacek Jagosz + - IRC: JacekJagosz + - Email: jacek.jagosz@outlook.com diff --git a/Makefile b/Makefile new file mode 100644 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/abi_used_libs b/abi_used_libs new file mode 100644 --- /dev/null +++ b/abi_used_libs @@ -0,0 +1,4 @@ +libc.so.6 +libgcc_s.so.1 +libhsa-runtime64.so.1 +libstdc++.so.6 diff --git a/abi_used_symbols b/abi_used_symbols new file mode 100644 --- /dev/null +++ b/abi_used_symbols @@ -0,0 +1,54 @@ +libc.so.6:__errno_location +libc.so.6:__libc_start_main +libc.so.6:__stack_chk_fail +libc.so.6:close +libc.so.6:fread +libc.so.6:getgrgid +libc.so.6:getgrnam +libc.so.6:getgrouplist +libc.so.6:getlogin_r +libc.so.6:getpwnam +libc.so.6:memcpy +libc.so.6:open +libc.so.6:pclose +libc.so.6:popen +libc.so.6:printf +libc.so.6:putchar +libc.so.6:puts +libc.so.6:snprintf +libc.so.6:stat +libc.so.6:strerror +libc.so.6:strlen +libgcc_s.so.1:_Unwind_Resume +libhsa-runtime64.so.1:hsa_agent_get_info +libhsa-runtime64.so.1:hsa_agent_iterate_isas +libhsa-runtime64.so.1:hsa_amd_agent_iterate_memory_pools +libhsa-runtime64.so.1:hsa_amd_memory_pool_get_info +libhsa-runtime64.so.1:hsa_init +libhsa-runtime64.so.1:hsa_isa_get_info_alt +libhsa-runtime64.so.1:hsa_iterate_agents +libhsa-runtime64.so.1:hsa_shut_down +libhsa-runtime64.so.1:hsa_status_string +libhsa-runtime64.so.1:hsa_system_get_info +libstdc++.so.6:_ZNSo9_M_insertImEERSoT_ +libstdc++.so.6:_ZNSt6localeD1Ev +libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm +libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc +libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm +libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm +libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_ +libstdc++.so.6:_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev +libstdc++.so.6:_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev +libstdc++.so.6:_ZNSt8ios_baseD2Ev +libstdc++.so.6:_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l +libstdc++.so.6:_ZSt20__throw_length_errorPKc +libstdc++.so.6:_ZSt9terminatev +libstdc++.so.6:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE +libstdc++.so.6:_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE +libstdc++.so.6:_ZTVSt15basic_streambufIcSt11char_traitsIcEE +libstdc++.so.6:_ZdaPv +libstdc++.so.6:_ZdlPv +libstdc++.so.6:_Znam +libstdc++.so.6:_Znwm +libstdc++.so.6:__cxa_begin_catch +libstdc++.so.6:__gxx_personality_v0 diff --git a/files/0001-adjust-CMAKE_CXX_FLAGS.patch b/files/0001-adjust-CMAKE_CXX_FLAGS.patch new file mode 100644 --- /dev/null +++ b/files/0001-adjust-CMAKE_CXX_FLAGS.patch @@ -0,0 +1,32 @@ +From b6a24b5d0c1e5c04a48e4e516ae89a66f53058d1 Mon Sep 17 00:00:00 2001 +From: Philipp Knechtges +Date: Tue, 24 Nov 2020 20:48:29 +0100 +Subject: [PATCH 1/2] adjust CMAKE_CXX_FLAGS + +--- + CMakeLists.txt | 9 +-------- + 1 file changed, 1 insertion(+), 8 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cbf5800..8839e06 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -138,14 +138,7 @@ set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fmerge-all-constants) + set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fms-extensions) + set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -Werror) + set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -Wall) +-set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -m64) +- +-# +-# Extend the compiler flags for 64-bit builds +-# +-if((${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") OR (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "AMD64")) +- set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -msse -msse2) +-endif() ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{CXXFLAGS}") + + # + # Add compiler flags to include symbol information for debug builds +-- +2.34.1 + diff --git a/files/0002-fix-buildtype-detection.patch b/files/0002-fix-buildtype-detection.patch new file mode 100644 --- /dev/null +++ b/files/0002-fix-buildtype-detection.patch @@ -0,0 +1,25 @@ +From 1656c2d14b276f31dd61d8639e7e8b75c7d282b0 Mon Sep 17 00:00:00 2001 +From: Philipp Knechtges +Date: Tue, 24 Nov 2020 20:52:31 +0100 +Subject: [PATCH 2/2] fix buildtype detection + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8839e06..4ecc3da 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -60,7 +60,7 @@ include(utils) + find_package(hsa-runtime64 1.0 REQUIRED ) + + string(TOLOWER "${ROCRTST_BLD_TYPE}" tmp) +-if("${tmp}" STREQUAL release) ++if(NOT "${tmp}" STREQUAL debug) + set(BUILD_TYPE "Release") + set(ISDEBUG 0) + else() +-- +2.34.1 + diff --git a/files/series b/files/series new file mode 100644 --- /dev/null +++ b/files/series @@ -0,0 +1,2 @@ +0001-adjust-CMAKE_CXX_FLAGS.patch +0002-fix-buildtype-detection.patch diff --git a/package.yml b/package.yml new file mode 100644 --- /dev/null +++ b/package.yml @@ -0,0 +1,22 @@ +name : rocminfo +version : 5.1.3 +release : 1 +source : + - https://github.com/RadeonOpenCompute/rocminfo/archive/refs/tags/rocm-5.1.3.tar.gz : 7aecd7b189e129b77c8f2af70be2926a0f3a5ee89814879bc8477924a7e6f2ae +homepage : https://github.com/RadeonOpenCompute/rocminfo/ +license : NCSA +component : programming.devel +clang : yes +summary : ROCm Application for Reporting System Info +description: | + ROCm Application for Reporting System Info +builddeps : + - rocm-cmake + - rocm-runtime-devel +setup : | + %apply_patches + %cmake_ninja -DROCM_DIR=%PREFIX% +build : | + %ninja_build +install : | + %ninja_install diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,37 @@ + + + rocminfo + https://github.com/RadeonOpenCompute/rocminfo/ + + Jacek Jagosz + jacek.jagosz@outlook.com + + NCSA + programming.devel + ROCm Application for Reporting System Info + ROCm Application for Reporting System Info + + https://getsol.us/sources/README.Solus + + + rocminfo + ROCm Application for Reporting System Info + ROCm Application for Reporting System Info + + programming.devel + + /usr/bin/rocm_agent_enumerator + /usr/bin/rocminfo + /usr/share/doc/rocminfo/License.txt + + + + + 2022-07-01 + 5.1.3 + Packaging update + Jacek Jagosz + jacek.jagosz@outlook.com + + + \ No newline at end of file