1 |
commit: e94f62bceecc242d72de315c54acc2f904f4f9a3 |
2 |
Author: Miezhiko <Miezhiko <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 15 09:03:08 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 12:42:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e94f62bc |
7 |
|
8 |
sci-libs/pytorch: use system pybind11 |
9 |
|
10 |
Signed-off-by: Miezhiko <Miezhiko <AT> gmail.com> |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
sci-libs/pytorch/pytorch-1.10.0.ebuild | 6 +----- |
14 |
1 file changed, 1 insertion(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/pytorch/pytorch-1.10.0.ebuild b/sci-libs/pytorch/pytorch-1.10.0.ebuild |
17 |
index 1aa85911f..36d68fb14 100644 |
18 |
--- a/sci-libs/pytorch/pytorch-1.10.0.ebuild |
19 |
+++ b/sci-libs/pytorch/pytorch-1.10.0.ebuild |
20 |
@@ -47,7 +47,6 @@ https://github.com/google/XNNPACK/archive/79cd5f9e18ad0925ac9a050b00ea5a36230072 |
21 |
https://github.com/pytorch/kineto/archive/879a203d9bf554e95541679ddad6e0326f272dc1.tar.gz -> kineto-879a203d9bf554e95541679ddad6e0326f272dc1.tar.gz |
22 |
https://github.com/driazati/breakpad/archive/7d188f679d4ae0a5bd06408a3047d69ef8eef848.tar.gz -> breakpad-7d188f679d4ae0a5bd06408a3047d69ef8eef848.tar.gz |
23 |
https://github.com/mikey/linux-syscall-support/archive/e1e7b0ad8ee99a875b272c8e33e308472e897660.tar.gz -> lss-e1e7b0ad8ee99a875b272c8e33e308472e897660.tar.gz |
24 |
-https://github.com/pybind/pybind11/archive/8de7772cc72daca8e947b79b83fea46214931604.tar.gz -> pybind11-8de7772cc72daca8e947b79b83fea46214931604.tar.gz |
25 |
" |
26 |
|
27 |
# git clone git@××××××.com:pytorch/pytorch.git && cd pytorch |
28 |
@@ -197,8 +196,6 @@ src_prepare() { |
29 |
ln -sv "${WORKDIR}"/breakpad-7d188f679d4ae0a5bd06408a3047d69ef8eef848 third_party/breakpad || die |
30 |
rmdir third_party/breakpad/src/third_party/lss || die |
31 |
ln -sv "${WORKDIR}"/linux-syscall-support-e1e7b0ad8ee99a875b272c8e33e308472e897660 third_party/breakpad/src/third_party/lss || die |
32 |
- rmdir third_party/pybind11 || die |
33 |
- ln -sv "${WORKDIR}"/pybind11-8de7772cc72daca8e947b79b83fea46214931604 third_party/pybind11 || die |
34 |
|
35 |
if use cuda; then |
36 |
cd third_party/nccl/nccl || die |
37 |
@@ -264,6 +261,7 @@ src_configure() { |
38 |
-DUSE_MPI=$(usex mpi ON OFF) |
39 |
-DUSE_GLOO=$(usex gloo ON OFF) |
40 |
-DUSE_SYSTEM_EIGEN_INSTALL=ON |
41 |
+ -DUSE_SYSTEM_PYBIND11=ON |
42 |
-DBUILD_NAMEDTENSOR=$(usex namedtensor ON OFF) |
43 |
-DBLAS=$(usex blas Generic Eigen) |
44 |
-DTP_BUILD_LIBUV=OFF |
45 |
@@ -321,8 +319,6 @@ src_install() { |
46 |
python_foreach_impl python_optimize |
47 |
fi |
48 |
|
49 |
- rm -rfv "${ED}/usr/include/pybind11" |
50 |
- |
51 |
find "${ED}/usr/${LIB}" -name "*.a" -exec rm -fv {} \; |
52 |
|
53 |
use test && rm -rfv "${ED}/usr/test" "${ED}"/usr/bin/test_{api,jit} |