diff options
author | YiyangWu <xgreenlandforwyy@gmail.com> | 2021-08-13 15:34:41 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2021-08-13 16:06:34 +0800 |
commit | 2ccc0ca201ff2eeea88171653ebad5dd6817bd3d (patch) | |
tree | e8581d1ba5e8c3bff6410f6355425a621066b1f8 /dev-util/roctracer | |
parent | www-client/seamonkey: Removed old (diff) | |
download | gentoo-2ccc0ca201ff2eeea88171653ebad5dd6817bd3d.tar.gz gentoo-2ccc0ca201ff2eeea88171653ebad5dd6817bd3d.tar.bz2 gentoo-2ccc0ca201ff2eeea88171653ebad5dd6817bd3d.zip |
dev-util/roctracer: bump version to 4.2
fix the missing dependency of dev-util/hip-4.2:
https://qa-reports.gentoo.org/output/gentoo-ci/222df9ee45/output.html#dev-util/hip
Bug: https://github.com/gentoo/gentoo/pull/21655
Closes: https://github.com/gentoo/gentoo/pull/21973
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/roctracer')
-rw-r--r-- | dev-util/roctracer/Manifest | 2 | ||||
-rw-r--r-- | dev-util/roctracer/roctracer-4.2.0.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-util/roctracer/Manifest b/dev-util/roctracer/Manifest index d6046052c242..189cdd49ff3e 100644 --- a/dev-util/roctracer/Manifest +++ b/dev-util/roctracer/Manifest @@ -1 +1,3 @@ DIST rocm-tracer-4.0.0.tar.gz 462166 BLAKE2B 1294b5639a743a9d32737c72dc0f082b5a33ee1b3365f48221ad6392cdde7637926c42ea344fa96e9fc8410ea04e9ce3f535e188a25130f4be764c4d4a59b69c SHA512 312cd6c4c98a83e28a9f8b9e6123862af2e80a0d0852acff11be65d198f277c6ea194e72f6dbaccab1dd5d4af318bef28ca546e49440f22d024a546a4e5e9e15 +DIST rocm-tracer-4.2.0.tar.gz 476974 BLAKE2B 3a7be9c269fec5dcca98d7de514d97a2e1de7bbfaa54a1aca2df70453d05326564c8ee7bf793c7d176069ecd3f7f91409c6a20dd0773aa157f7abc1dac41448e SHA512 002d9fccee4761af4853e589b116bc5844b98abb84517c260aedcb5f31f5c92b862a233062ec280a6f878343c4f751d55f47fd38483e1882feb8c970f9836120 +DIST rocprofiler-4.2.0.tar.gz 1408433 BLAKE2B b35a7710d680167bad78ff74be153ea994ea919d572c5091ecec73d614bebb7ec14a14d81a0cabbe514b8439ddd7225f1a3a3fa7a0b653c33f938568bbe0c593 SHA512 35d3e9648bc5ee60bbddc15c9675efba7de3b4b3b725b9623e71a83007b8f23a323cc1da82e67f0ff425e5f827d6c632435bf465be8cba8c775405ead3f0f3be diff --git a/dev-util/roctracer/roctracer-4.2.0.ebuild b/dev-util/roctracer/roctracer-4.2.0.ebuild new file mode 100644 index 000000000000..2a61dee24cb5 --- /dev/null +++ b/dev-util/roctracer/roctracer-4.2.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9} ) + +inherit cmake prefix python-any-r1 + +DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's" +HOMEPAGE="https://github.com/ROCm-Developer-Tools/roctracer.git" +SRC_URI="https://github.com/ROCm-Developer-Tools/roctracer/archive/rocm-${PV}.tar.gz -> rocm-tracer-${PV}.tar.gz + https://github.com/ROCm-Developer-Tools/rocprofiler/archive/rocm-${PV}.tar.gz -> rocprofiler-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" + +RDEPEND="dev-libs/rocr-runtime:${SLOT} + dev-util/hip:${SLOT}" +DEPEND="dev-python/CppHeaderParser + dev-python/ply + ${RDEPEND}" + +S="${WORKDIR}/roctracer-rocm-${PV}" + +src_prepare() { + mv "${WORKDIR}"/rocprofiler-rocm-${PV} "${WORKDIR}"/rocprofiler || die + + # do not build the tool and it´s library; + # change destination for headers to include/roctracer; + # do not install a second set of header files; + + sed -e "/LIBRARY DESTINATION/s,lib,$(get_libdir)," \ + -e "/add_subdirectory ( \${TEST_DIR} \${PROJECT_BINARY_DIR}/d" \ + -e "/DESTINATION/s,\${DEST_NAME}/include,include/roctracer," \ + -e "/install ( FILES \${PROJECT_BINARY_DIR}/d" \ + -e "/DESTINATION/s,\${DEST_NAME}/lib64,$(get_libdir)/roctracer,g" \ + -i CMakeLists.txt || die + + # do not download additional sources via git + sed -e "/execute_process ( COMMAND sh -xc \"if/d" \ + -e "/add_subdirectory ( \${HSA_TEST_DIR} \${PROJECT_BINARY_DIR}/d" \ + -i test/CMakeLists.txt || die + + hprefixify script/*.py + + eapply_user + cmake_src_prepare +} + +src_configure() { + export HIP_PATH="${EPREFIX}/usr/lib/hip" + + local mycmakeargs=( + -DHIP_VDI=1 + -DCMAKE_PREFIX_PATH="${EPREFIX}/usr/include/hsa:${EPREFIX}/usr/lib" + ) + + cmake_src_configure +} |