diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-util/rocprofiler | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-util/rocprofiler')
-rw-r--r-- | dev-util/rocprofiler/Manifest | 10 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-fix-gcc11.patch | 13 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-gentoo-location.patch | 71 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch | 13 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch | 13 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch | 59 | ||||
-rw-r--r-- | dev-util/rocprofiler/metadata.xml | 15 | ||||
-rw-r--r-- | dev-util/rocprofiler/rocprofiler-4.3.0.ebuild | 60 | ||||
-rw-r--r-- | dev-util/rocprofiler/rocprofiler-5.0.2.ebuild | 59 |
9 files changed, 313 insertions, 0 deletions
diff --git a/dev-util/rocprofiler/Manifest b/dev-util/rocprofiler/Manifest new file mode 100644 index 000000000000..a254fb800f50 --- /dev/null +++ b/dev-util/rocprofiler/Manifest @@ -0,0 +1,10 @@ +AUX rocprofiler-4.3.0-fix-gcc11.patch 410 BLAKE2B 04516f2da7ed09de30243bb05241489deb9ee23e94ef5014dede9c9d54869d24a8467699cdc7e7fa5840c98102b386555c40ab77c4fe1d9679d2bdf17fb7855f SHA512 170963d5a52b5b42924f39d0dc9b2c6c8e4ae468b97cf453a28d6a1be8f2b5bf49f73de80a40cd98b837038f53bbd4002f9ed83864129c36682f317b376da83c +AUX rocprofiler-4.3.0-gentoo-location.patch 2651 BLAKE2B 296c84acb0887ef0792698636ca521d749fb81e283e0e42a9799f2af002a7f5397eb9051ee2711b3d78a34b9061db3be420e7de07fc1c0ee478c2b6402cecfa5 SHA512 a55c83584fb40a0a342125ae88689eea7857e6663759e5d5664a9c618afeea74662d551e9cab78ec03859d4503d67ea0f6b26143a8bea05d213f6426112ffb18 +AUX rocprofiler-4.3.0-ldflag.patch 627 BLAKE2B 116e02e22f1ad0b3168dbc2aa76792a8797b1e6fe4c77f876af6c6e964936d2c2687972dd68c2057623197d8ddc1e9b318767f5e3818b7e35a03ce433b821080 SHA512 393e6334d2f13a6f8a0708c45233b1211b074969873ff1faaf5e58b667be57602b7a885f737f9309699fee9ab859d6ce28f5760e2b42556d9d8320957f68dca0 +AUX rocprofiler-4.3.0-nostrip.patch 540 BLAKE2B 20592fe6ee33effc9feaca9ffcd6d48bef0a46bb7353c4e0b624cfb60b29a168ace763c86775c020ce162dca59886a68068485da19a2a14b35582a3ae33dfbe4 SHA512 a1d2a5d1606e4d2d249e51063f76b96dc460fb6ebe358029182bf9e4de88dd6879332cdff0ee7458b808a4dcc35fcbba3b43f0fc8c5dc2a0cffbbf2ddb05634c +AUX rocprofiler-5.0.2-gentoo-location.patch 2218 BLAKE2B 1f7a2279ee98be6ca5f225e4a034c661f992a61010d43096e63174a38b9bdb02726d7dfd32d8cbf2b9f328c25edd030f9db8d6cc1043ecf28f908aba94173f97 SHA512 83de59a2650349d9ce3ca761a67d0cb5e3c8f5b1c64eef75637ddd7fbba2cc869c5ce6665966bd033df9f5dbbf99677de6b433ef4398814acdcefaf6687c79df +DIST rocprofiler-4.3.0.tar.gz 1402250 BLAKE2B 3826c3b26b0d5838ab3475614c2ecd2265e177fe40b8a90abb491746513bd50841e5ceb34d1fcb4bcb2fbe8a6854b9715d0670d38f08775e5e14cd855f15629b SHA512 e327146604459f2f827ab943a21d0eaa0ee41cf6770ab94dd019d461cf6438e70a48139ce67ec1553d0f450fa5bb233a7ed39438e8bf39b33218d53e2c270d3b +DIST rocprofiler-5.0.2.tar.gz 1401732 BLAKE2B ae870bc50dbd39c11e24f77ccb41773df1107b76cb7a12e1cebc66f8d66ddba6ad3bd6f9fe61657b03b22ef35f88fb608cf6070178f6aab24fe7a1bdcac43a96 SHA512 244e2b827126b7299ec0510daa5e1245a4a5a877394419f8bc9113f443231f67fc935609cbde6eeb26bb138ab4e95e2a88829ffa79ecc8f9881b5a77b5910c02 +EBUILD rocprofiler-4.3.0.ebuild 1618 BLAKE2B ca44d2232838b018f8ee27faa0d04d9a25709c6649e73fd90b64381075295e0b38a0a19ce8cedaaae5eff3224d5b79a8854927078db54cff5a7b785b15370ba9 SHA512 10ff1ee45e0b60a8c7476b9d5ee7cc5a0393ed2a6c044dea9676903841d106e5c199aeca4e2581f38cebe62735f719fc5f4b91982692dac6b5c0f5efe412d4ce +EBUILD rocprofiler-5.0.2.ebuild 1581 BLAKE2B 0cae17e1bc9e5156cc61e51f2dcd0852798126546597d46f45497f56f8c0f20419bbf8a06ee5d422a7201ea04fd0d7739427d83a0423e47bac0f37486fcf3a90 SHA512 cb3186151bfbf782bf60e6b59d9806c77557966f9a8d41e569b6b5985c56468218dc0417d801889ab853f13de368e3156567a12f39945c77aca7ed6bbec2b7ff +MISC metadata.xml 493 BLAKE2B 79000a74b13a0d35e0bcdb8254471fde9027c498ca75e761a3f694690315149e711ae8f7b73ae9bc5aa462358784fac055b975149109829e00cb2acac73ef138 SHA512 3f49c336aee801fb73d26b9d43a52816ca15c75061bed885c1b1406929ae1a3b9b01ce6f3c71b17ca9e121dcbc73f525d5a843c526ea8d4b433642eeff89ccd5 diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-fix-gcc11.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-fix-gcc11.patch new file mode 100644 index 000000000000..0aec99627a4a --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-fix-gcc11.patch @@ -0,0 +1,13 @@ +Index: rocprofiler-rocm-4.3.0/test/ctrl/test_kernel.h +=================================================================== +--- rocprofiler-rocm-4.3.0.orig/test/ctrl/test_kernel.h ++++ rocprofiler-rocm-4.3.0/test/ctrl/test_kernel.h +@@ -23,7 +23,7 @@ THE SOFTWARE. + #ifndef TEST_CTRL_TEST_KERNEL_H_ + #define TEST_CTRL_TEST_KERNEL_H_ + +-#include <string.h> ++#include <string> + #include <stdint.h> + #include <map> + diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-gentoo-location.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-gentoo-location.patch new file mode 100644 index 000000000000..b6d8454dfedd --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-gentoo-location.patch @@ -0,0 +1,71 @@ +Index: rocprofiler-rocm-4.3.0/bin/rpl_run.sh +=================================================================== +--- rocprofiler-rocm-4.3.0.orig/bin/rpl_run.sh ++++ rocprofiler-rocm-4.3.0/bin/rpl_run.sh +@@ -25,18 +25,18 @@ + time_stamp=`date +%y%m%d_%H%M%S` + BIN_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) + PKG_DIR=$(dirname $BIN_DIR) +-ROOT_DIR=$(dirname $PKG_DIR) +-TT_DIR=$ROOT_DIR/roctracer ++ROOT_DIR=$PKG_DIR ++TT_DIR=$ROOT_DIR + RUN_DIR=`pwd` + TMP_DIR="/tmp" + DATA_DIR="rpl_data_${time_stamp}_$$" + +-RPL_PATH=$PKG_DIR/lib +-TLIB_PATH=$PKG_DIR/tool +-TTLIB_PATH=$TT_DIR/tool +-ROCM_LIB_PATH=$ROOT_DIR/lib ++RPL_PATH=$PKG_DIR/@LIB_DIR@ ++TLIB_PATH=$PKG_DIR/@LIB_DIR@ ++TTLIB_PATH=$TT_DIR/@LIB_DIR@ ++ROCM_LIB_PATH=$ROOT_DIR/@LIB_DIR@ + +-GFX=`/opt/rocm/bin/rocm_agent_enumerator | tail -1` ++GFX=`rocm_agent_enumerator | tail -1` + + SPM_COUNTERS_FILE="spm_counters.txt" + +@@ -75,7 +75,7 @@ export ROCP_HSA_INTERCEPT=1 + # Disabling internal ROC Profiler proxy queue (simple version supported for testing purposes) + unset ROCP_PROXY_QUEUE + # ROC Profiler metrics definition +-export ROCP_METRICS=$PKG_DIR/lib/metrics.xml ++export ROCP_METRICS=$PKG_DIR/share/rocprofiler/metrics.xml + # Disable AQL-profile read API + export AQLPROFILE_READ_API=0 + # ROC Profiler package path +@@ -109,7 +109,7 @@ usage() { + bin_name=`basename $0` + echo "ROCm Profiling Library (RPL) run script, a part of ROCprofiler library package." + echo "Full path: $BIN_DIR/$bin_name" +- echo "Metrics definition: $PKG_DIR/lib/metrics.xml" ++ echo "Metrics definition: $PKG_DIR/share/rocprofiler/metrics.xml" + echo "" + echo "Usage:" + echo " $bin_name [-h] [--list-basic] [--list-derived] [-i <input .txt/.xml file>] [-o <output CSV file>] <app command line>" +@@ -270,7 +270,7 @@ run() { + fi + if [ "$KFD_TRACE" = 1 ] ; then + API_TRACE=${API_TRACE}":kfd" +- MY_LD_PRELOAD="$TT_DIR/lib/libkfdwrapper64.so $ROCM_LIB_PATH/libhsakmt.so.1 $MY_LD_PRELOAD" ++ MY_LD_PRELOAD="$TTLIB_PATH/libkfdwrapper64.so $ROCM_LIB_PATH/libhsakmt.so.1 $MY_LD_PRELOAD" + fi + if [ "$HIP_TRACE" = 1 ] ; then + API_TRACE=${API_TRACE}":hip" +@@ -380,11 +380,11 @@ while [ 1 ] ; do + export ROCP_METRICS="$2" + elif [ "$1" = "--list-basic" ] ; then + export ROCP_INFO=b +- HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/tool/ctrl" ++ HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/bin/ctrl" + exit 1 + elif [ "$1" = "--list-derived" ] ; then + export ROCP_INFO=d +- HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/tool/ctrl" ++ HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/bin/ctrl" + exit 1 + elif [ "$1" = "--basenames" ] ; then + if [ "$2" = "on" ] ; then diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch new file mode 100644 index 000000000000..dc097a568ca4 --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch @@ -0,0 +1,13 @@ +Index: rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +=================================================================== +--- rocprofiler-rocm-5.0.2.orig/cmake_modules/env.cmake ++++ rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +@@ -51,7 +51,7 @@ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS + #set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=int-in-bool-context" ) + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" ) + +-set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack" ) ++set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bdynamic -Wl,-z,noexecstack" ) + + set ( CMAKE_SKIP_BUILD_RPATH TRUE ) + diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch new file mode 100644 index 000000000000..3da3d99357f7 --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch @@ -0,0 +1,13 @@ +Index: rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +=================================================================== +--- rocprofiler-rocm-5.0.2.orig/cmake_modules/env.cmake ++++ rocprofiler-rocm-5.0.2/cmake_modules/env.cmake +@@ -92,8 +92,6 @@ string ( TOLOWER "${CMAKE_BUILD_TYPE}" C + if ( "${CMAKE_BUILD_TYPE}" STREQUAL debug ) + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb" ) + set ( CMAKE_BUILD_TYPE "debug" ) +-else () +- set ( CMAKE_BUILD_TYPE "release" ) + endif () + + ## Extend Compiler flags based on Processor architecture diff --git a/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch b/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch new file mode 100644 index 000000000000..0605675e41c6 --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch @@ -0,0 +1,59 @@ +Index: rocprofiler-rocm-5.0.2/bin/rpl_run.sh +=================================================================== +--- rocprofiler-rocm-5.0.2.orig/bin/rpl_run.sh ++++ rocprofiler-rocm-5.0.2/bin/rpl_run.sh +@@ -25,16 +25,16 @@ + time_stamp=`date +%y%m%d_%H%M%S` + BIN_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) + PKG_DIR=$(dirname $BIN_DIR) +-ROOT_DIR=$(dirname $PKG_DIR) +-TT_DIR=$ROOT_DIR/roctracer ++ROOT_DIR=$PKG_DIR ++TT_DIR=ROOT_DIR + RUN_DIR=`pwd` + TMP_DIR="/tmp" + DATA_DIR="rpl_data_${time_stamp}_$$" + +-RPL_PATH=$PKG_DIR/lib +-TLIB_PATH=$PKG_DIR/tool +-TTLIB_PATH=$TT_DIR/tool +-ROCM_LIB_PATH=$ROOT_DIR/lib ++RPL_PATH=$PKG_DIR/@LIB_DIR@ ++TLIB_PATH=$PKG_DIR/@LIB_DIR@ ++TTLIB_PATH=$TT_DIR/@LIB_DIR@ ++ROCM_LIB_PATH=$ROOT_DIR/@LIB_DIR@ + + if [ -z "$ROCP_PYTHON_VERSION" ] ; then + ROCP_PYTHON_VERSION=python3 +@@ -70,7 +70,7 @@ export ROCP_HSA_INTERCEPT=1 + # Disabling internal ROC Profiler proxy queue (simple version supported for testing purposes) + unset ROCP_PROXY_QUEUE + # ROC Profiler metrics definition +-export ROCP_METRICS=$PKG_DIR/lib/metrics.xml ++export ROCP_METRICS=$PKG_DIR/share/rocprofiler/metrics.xml + # Disable AQL-profile read API + export AQLPROFILE_READ_API=0 + # ROC Profiler package path +@@ -104,7 +104,7 @@ usage() { + bin_name=`basename $0` + echo "ROCm Profiling Library (RPL) run script, a part of ROCprofiler library package." + echo "Full path: $BIN_DIR/$bin_name" +- echo "Metrics definition: $PKG_DIR/lib/metrics.xml" ++ echo "Metrics definition: $PKG_DIR/share/rocprofiler/metrics.xml" + echo "" + echo "Usage:" + echo " $bin_name [-h] [--list-basic] [--list-derived] [-i <input .txt/.xml file>] [-o <output CSV file>] <app command line>" +@@ -374,11 +374,11 @@ while [ 1 ] ; do + export ROCP_METRICS="$2" + elif [ "$1" = "--list-basic" ] ; then + export ROCP_INFO=b +- HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/tool/ctrl" ++ HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/bin/ctrl" + exit 1 + elif [ "$1" = "--list-derived" ] ; then + export ROCP_INFO=d +- HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/tool/ctrl" ++ HSA_TOOLS_LIB="$MY_HSA_TOOLS_LIB" eval "$PKG_DIR/bin/ctrl" + exit 1 + elif [ "$1" = "--basenames" ] ; then + if [ "$2" = "on" ] ; then diff --git a/dev-util/rocprofiler/metadata.xml b/dev-util/rocprofiler/metadata.xml new file mode 100644 index 000000000000..922afe7981b0 --- /dev/null +++ b/dev-util/rocprofiler/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>xgreenlandforwyy@gmail.com</email> + <name>Yiyang Wu</name> + </maintainer> + <upstream> + <remote-id type="github">ROCm-Developer-Tools/rocprofiler</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild b/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild new file mode 100644 index 000000000000..630f4754fc8f --- /dev/null +++ b/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit cmake 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/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-rocm-${PV}" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" + +RDEPEND="dev-libs/rocr-runtime:${SLOT} + dev-util/roctracer:${SLOT} + " +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_any_dep ' + dev-python/CppHeaderParser[${PYTHON_USEDEP}] + ') +" + +PATCHES=( "${FILESDIR}/${P}-fix-gcc11.patch" + "${FILESDIR}/${PN}-4.3.0-nostrip.patch" + "${FILESDIR}/${PN}-4.3.0-ldflag.patch" + "${FILESDIR}/${PN}-4.3.0-gentoo-location.patch" ) + +python_check_deps() { + has_version "dev-python/CppHeaderParser[${PYTHON_USEDEP}]" +} + +src_prepare() { + sed -e "s,\${DEST_NAME}/lib,$(get_libdir),g" \ + -e "s,\${DEST_NAME}/include,include/\${DEST_NAME},g" \ + -e "s,\${DEST_NAME}/bin,bin,g" \ + -e "/ctrl DESTINATION/s,\${DEST_NAME}/tool,bin,g" \ + -e "/CPACK_RESOURCE_FILE_LICENSE/d" \ + -e "/libtool.so DESTINATION/s,\${DEST_NAME}/tool,$(get_libdir),g" -i CMakeLists.txt || die + + cmake_src_prepare + + sed -e "s,@LIB_DIR@,$(get_libdir),g" -i bin/rpl_run.sh || die +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" + -DCMAKE_PREFIX_PATH="${EPREFIX}/usr/include/hsa" + -DPROF_API_HEADER_PATH="${EPREFIX}"/usr/include/roctracer/ext + -DUSE_PROF_API=1 + ) + + cmake_src_configure +} diff --git a/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild b/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild new file mode 100644 index 000000000000..7e8f0346636d --- /dev/null +++ b/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit cmake 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/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-rocm-${PV}" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" + +RDEPEND="dev-libs/rocr-runtime:${SLOT} + dev-util/roctracer:${SLOT} + " +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_any_dep ' + dev-python/CppHeaderParser[${PYTHON_USEDEP}] + ') +" + +PATCHES=( "${FILESDIR}/${PN}-4.3.0-nostrip.patch" + "${FILESDIR}/${PN}-4.3.0-ldflag.patch" + "${FILESDIR}/${PN}-5.0.2-gentoo-location.patch" ) + +python_check_deps() { + has_version "dev-python/CppHeaderParser[${PYTHON_USEDEP}]" +} + +src_prepare() { + sed -e "s,\${DEST_NAME}/lib,$(get_libdir),g" \ + -e "s,\${DEST_NAME}/include,include/\${DEST_NAME},g" \ + -e "s,\${DEST_NAME}/bin,bin,g" \ + -e "/ctrl DESTINATION/s,\${DEST_NAME}/tool,bin,g" \ + -e "/CPACK_RESOURCE_FILE_LICENSE/d" \ + -e "/libtool.so DESTINATION/s,\${DEST_NAME}/tool,$(get_libdir),g" -i CMakeLists.txt || die + + cmake_src_prepare + + sed -e "s,@LIB_DIR@,$(get_libdir),g" -i bin/rpl_run.sh || die +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" + -DCMAKE_PREFIX_PATH="${EPREFIX}/usr/include/hsa" + -DPROF_API_HEADER_PATH="${EPREFIX}"/usr/include/roctracer/ext + -DUSE_PROF_API=1 + ) + + cmake_src_configure +} |