3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..10} )
|
|
6 |
PYTHON_COMPAT=( python3_{10..11} )
|
7 |
7 |
|
8 |
8 |
inherit cmake python-any-r1
|
9 |
9 |
|
10 |
10 |
DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's"
|
11 |
|
HOMEPAGE="https://github.com/ROCm-Developer-Tools/roctracer.git"
|
|
11 |
HOMEPAGE="https://github.com/ROCm-Developer-Tools/rocprofiler.git"
|
12 |
12 |
SRC_URI="https://github.com/ROCm-Developer-Tools/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
|
13 |
13 |
S="${WORKDIR}/${PN}-rocm-${PV}"
|
14 |
14 |
|
... | ... | |
17 |
17 |
KEYWORDS="~amd64"
|
18 |
18 |
|
19 |
19 |
RDEPEND="dev-libs/rocr-runtime:${SLOT}
|
20 |
|
>=dev-util/roctracer-${PV}-r1:${SLOT}
|
|
20 |
dev-util/roctracer:${SLOT}
|
21 |
21 |
"
|
22 |
22 |
DEPEND="${RDEPEND}"
|
23 |
23 |
BDEPEND="
|
... | ... | |
28 |
28 |
|
29 |
29 |
PATCHES=( "${FILESDIR}/${PN}-4.3.0-nostrip.patch"
|
30 |
30 |
"${FILESDIR}/${PN}-4.3.0-no-aqlprofile.patch"
|
31 |
|
"${FILESDIR}/${PN}-5.0.2-gentoo-location.patch"
|
32 |
|
"${FILESDIR}/${PN}-5.1.3-remove-Werror.patch" )
|
|
31 |
"${FILESDIR}/${PN}-5.1.3-remove-Werror.patch"
|
|
32 |
"${FILESDIR}/${PN}-5.3.3-gentoo-location.patch"
|
|
33 |
"${FILESDIR}/${PN}-5.3.3-remove-aql-in-cmake.patch" )
|
33 |
34 |
|
34 |
35 |
python_check_deps() {
|
35 |
36 |
python_has_version "dev-python/CppHeaderParser[${PYTHON_USEDEP}]"
|
36 |
37 |
}
|
37 |
38 |
|
38 |
39 |
src_prepare() {
|
39 |
|
sed -e "s,\${DEST_NAME}/lib,$(get_libdir),g" \
|
40 |
|
-e "s,\${DEST_NAME}/include,include/\${DEST_NAME},g" \
|
41 |
|
-e "s,\${DEST_NAME}/bin,bin,g" \
|
42 |
|
-e "/ctrl DESTINATION/s,\${DEST_NAME}/tool,bin,g" \
|
43 |
|
-e "/CPACK_RESOURCE_FILE_LICENSE/d" \
|
44 |
|
-e "/libtool.so DESTINATION/s,\${DEST_NAME}/tool,$(get_libdir),g" -i CMakeLists.txt || die
|
45 |
|
|
46 |
40 |
cmake_src_prepare
|
47 |
41 |
|
48 |
42 |
sed -e "s,@LIB_DIR@,$(get_libdir),g" -i bin/rpl_run.sh || die
|
... | ... | |
50 |
44 |
|
51 |
45 |
src_configure() {
|
52 |
46 |
local mycmakeargs=(
|
|
47 |
-DCMAKE_SKIP_RPATH=On
|
53 |
48 |
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
|
54 |
49 |
-DCMAKE_PREFIX_PATH="${EPREFIX}/usr/include/hsa"
|
55 |
50 |
-DPROF_API_HEADER_PATH="${EPREFIX}"/usr/include/roctracer/ext
|
|
51 |
-DFILE_REORG_BACKWARD_COMPATIBILITY=OFF
|
56 |
52 |
-DUSE_PROF_API=1
|
57 |
53 |
)
|
58 |
54 |
|