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/torchvision/
Date: Thu, 01 Dec 2022 21:58:19
Message-Id: 1669931676.bd5fc63025145b87d3627171a90d47aa241a76d5.andrewammerlaan@gentoo
1 commit: bd5fc63025145b87d3627171a90d47aa241a76d5
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 21:54:14 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 21:54:36 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=bd5fc630
7
8 sci-libs/torchvision: drop use cuda
9
10 it has been dropped on pytorch
11
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-libs/torchvision/metadata.xml | 3 ---
15 sci-libs/torchvision/torchvision-0.11.2.ebuild | 10 +---------
16 2 files changed, 1 insertion(+), 12 deletions(-)
17
18 diff --git a/sci-libs/torchvision/metadata.xml b/sci-libs/torchvision/metadata.xml
19 index 28985da70..9c4ddaefd 100644
20 --- a/sci-libs/torchvision/metadata.xml
21 +++ b/sci-libs/torchvision/metadata.xml
22 @@ -5,9 +5,6 @@
23 <email>jpizarrocallejas@×××××.com</email>
24 <name>Jorge Pizarro Callejas</name>
25 </maintainer>
26 - <use>
27 - <flag name="cuda">Enable CUDA support if enabled in PyTorch</flag>
28 - </use>
29 <upstream>
30 <remote-id type="github">pytorch/vision</remote-id>
31 </upstream>
32
33 diff --git a/sci-libs/torchvision/torchvision-0.11.2.ebuild b/sci-libs/torchvision/torchvision-0.11.2.ebuild
34 index b17ac9007..765fd05b7 100644
35 --- a/sci-libs/torchvision/torchvision-0.11.2.ebuild
36 +++ b/sci-libs/torchvision/torchvision-0.11.2.ebuild
37 @@ -14,7 +14,6 @@ SRC_URI="https://github.com/pytorch/vision/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 LICENSE="BSD"
39 SLOT="0"
40 KEYWORDS="~amd64"
41 -IUSE="cuda"
42
43 RDEPEND="
44 dev-python/av[${PYTHON_USEDEP}]
45 @@ -23,7 +22,7 @@ RDEPEND="
46 dev-python/six[${PYTHON_USEDEP}]
47 dev-python/tqdm[${PYTHON_USEDEP}]
48 dev-python/scipy[${PYTHON_USEDEP}]
49 - sci-libs/pytorch[cuda(-)?,${PYTHON_USEDEP}]
50 + sci-libs/pytorch[${PYTHON_USEDEP}]
51 media-video/ffmpeg
52 dev-qt/qtcore:5
53 "
54 @@ -38,10 +37,3 @@ BDEPEND="
55 S="${WORKDIR}/vision-${PV}"
56
57 distutils_enable_tests pytest
58 -
59 -pkg_setup() {
60 - if use cuda; then
61 - export FORCE_CUDA=1
62 - export TORCH_CUDA_ARCH_LIST="3.5;3.7;5.0;5.2;5.3;6.0;6.0+PTX;6.1;6.1+PTX;6.2;6.2+PTX;7.0;7.0+PTX;7.2;7.2+PTX;7.5;7.5+PTX"
63 - fi
64 -}