diff options
Diffstat (limited to 'dev-util/roctracer')
-rw-r--r-- | dev-util/roctracer/Manifest | 3 | ||||
-rw-r--r-- | dev-util/roctracer/roctracer-4.2.0.ebuild | 61 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/roctracer/Manifest b/dev-util/roctracer/Manifest index ebb92736922c..2f9784bfff36 100644 --- a/dev-util/roctracer/Manifest +++ b/dev-util/roctracer/Manifest @@ -1,4 +1,7 @@ AUX roctracer-3.8.0-gen_ostream_ops-toPython3.patch 1496 BLAKE2B 951878e73412f08de88e073e2f790620c4a0f97d479211668cc9eb0e1d9cb3245070df8d0a81374d2a22d6c3d68591f85c99114639fc620a8c742167eb5a5044 SHA512 7a8808b33cf2c4280e70773768b4a5997aafe8916262fb4be562d42867847e6d4600a6559955c901d0841059a1b3764c6acef5b755b61f1ee116bc9b9d7a62c0 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 EBUILD roctracer-4.0.0-r1.ebuild 1572 BLAKE2B dbdbf598991d569c3bc4788d5be653678431df80f8dd5229f5be5a0dda05146ca9417d738ecae08eb6eb10f9056e09403b5289a25badddf5b24d1a863ea778fc SHA512 b4dc5f0f4b189139df9ffcc854daedb0a59547ad99156814ae50b95c888a209d2b4b4771e39599cc3bc5afb5fa44a4010d0fc77b8e80299ecd7a275b7bbf4647 +EBUILD roctracer-4.2.0.ebuild 1794 BLAKE2B 068823ead6d587839af1abf89aa76362dbd7512ca30f0b3c42b4c924d7cd911bae6629cdd779ff9ab1fd7ae50ae0224e9ba94e3f013880859ec0f2073cb862b9 SHA512 52a962894901a1ef2bc8cdc93de1dacbeaadfc7f84ecebf365c4fdcacdca4a2e91badb8bebae6a183613c61979eaf4c785a07aed410b52bbcde691fc57d57369 MISC metadata.xml 602 BLAKE2B eadd55217e056e8331434427e8ba60908453ef2e74bebc1dddce93627d6ce6c2c7d94aed9ac4803a44c68da5eb0f43ab39d7fde1566c8ad46250d05870a66d1f SHA512 0acfbe065cdcd66a61f8dd18b9112635e7ab28add42b1783428aedeb7e8f9af43568ca4e3c47ce1e16ef83ce5cf9aa3f49fc17d77d7344d1c0939f477ee548ca 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 +} |