Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/pytorch/
Date: Fri, 14 Jan 2022 15:21:53
Message-Id: 1642173592.17596353d6219013a251b16c096aae3f42c90ac0.andrewammerlaan@gentoo
1 commit: 17596353d6219013a251b16c096aae3f42c90ac0
2 Author: Antonin Riha <antonin.riha <AT> bluedynamic <DOT> cz>
3 AuthorDate: Fri Jan 14 14:52:19 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 14 15:19:52 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=17596353
7
8 Fixed thrust include path for rocm platform
9
10 Signed-off-by: Antonín Říha <riha.antonin <AT> outlook.com>
11 Closes: https://github.com/gentoo/sci/pull/1133
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-libs/pytorch/pytorch-1.10.1.ebuild | 1 +
15 1 file changed, 1 insertion(+)
16
17 diff --git a/sci-libs/pytorch/pytorch-1.10.1.ebuild b/sci-libs/pytorch/pytorch-1.10.1.ebuild
18 index 948d595a7..59947e530 100644
19 --- a/sci-libs/pytorch/pytorch-1.10.1.ebuild
20 +++ b/sci-libs/pytorch/pytorch-1.10.1.ebuild
21 @@ -230,6 +230,7 @@ src_prepare() {
22 export PYTORCH_ROCM_ARCH="${AMDGPU_TARGETS}"
23 sed -e "/set(roctracer_INCLUDE_DIRS/s,\${ROCTRACER_PATH}/include,${EPREFIX}/usr/include/roctracer," \
24 -e "/PYTORCH_HIP_HCC_LIBRARIES/s,\${HIP_PATH}/lib,${EPREFIX}/usr/lib/hip/lib," \
25 + -e "/set(roctracer_INCLUDE_DIRS/a\ set(thrust_INCLUDE_DIRS ${EPREFIX}/usr/include/rocthrust)" \
26 -e "s,\${ROCTRACER_PATH}/lib,${EPREFIX}/usr/lib64/roctracer," \
27 -e "/READ.*\.info\/version-dev/c\ set(ROCM_VERSION_DEV_RAW ${ROCM_VERSION})" \
28 -i cmake/public/LoadHIP.cmake || die