Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sci-libs/torchvision: add 0.19.1, drop olds #1293

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sci-libs/torchvision/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DIST torchvision-0.14.1.tar.gz 9265179 BLAKE2B 0708635b00ac7c2cf4e54799f1190f01f3240f53233695819f691313b8a369b8922520e2f3cf96184bab671877b5826b84e0936d9ca5b58004d6e2a098c6cbbf SHA512 08fb1e35da1c3f1d0446ef879d9b6a7ae839a5137c3b5b46ef8111c2ae890299e2b555d1bd3b3d61f96b8778b831d8f895487cf8a4e36e371fcd4b8acda67d1f
DIST torchvision-0.17.1.tar.gz 13091686 BLAKE2B db25faab565412f2892ca4cf8d13c459b8045aaab83009a686a93272f0b3e3e8c0da930f1d7b0682e0adc7a600195b035ca19f71fd15a26f77b349206e3ed324 SHA512 c9ef5704a337a43c1ab3a5865b2a20d09d07a9b5eeda66c7aa1e1931772bad9acee822bb400cf627960a84ace01188cd32e95f0e709eb392bf9028d36cfc50be
DIST torchvision-0.19.1.tar.gz 13135101 BLAKE2B 1d8ed851750840518dab6ff1153bbdcac723832500c072e78036282ef9396c33862b9f72cfd09456daea89e8c496d04a01e880a533e0f4c01779ed8add30bc55 SHA512 87ba1616ac6ed92851b0908bf7e5a3f840a3de8ab6fa5d7d3b27f9ed37efc5082540a88b4216a4fd91284c27dd69625ea04f2c1b81a6e5149e4ba3bea261b22b
36 changes: 0 additions & 36 deletions sci-libs/torchvision/files/torchvision-0.17.1-ffmpeg-6.patch

This file was deleted.

3 changes: 3 additions & 0 deletions sci-libs/torchvision/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<email>jpizarrocallejas@gmail.com</email>
<name>Jorge Pizarro Callejas</name>
</maintainer>
<use>
<flag name="rocm">Enable ROCm gpu computing support</flag>
</use>
<upstream>
<remote-id type="github">pytorch/vision</remote-id>
</upstream>
Expand Down
40 changes: 0 additions & 40 deletions sci-libs/torchvision/torchvision-0.14.1.ebuild

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

EAPI=8

PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
inherit distutils-r1 multiprocessing
ROCM_SKIP_GLOBALS=1
inherit cuda distutils-r1 multiprocessing rocm

DESCRIPTION="Datasets, transforms and models to specific to computer vision"
HOMEPAGE="https://github.com/pytorch/vision"
Expand All @@ -17,7 +18,11 @@ S="${WORKDIR}/vision-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"
IUSE="cuda rocm test"
REQUIRED_USE="?? ( cuda rocm )"
RESTRICT="!test? ( test )"

distutils_enable_tests pytest

RDEPEND="
$(python_gen_cond_dep '
Expand All @@ -27,19 +32,30 @@ RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
')
sci-libs/caffe2[cuda?,rocm?]
sci-libs/pytorch[${PYTHON_SINGLE_USEDEP}]
media-video/ffmpeg:=
"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}/${PN}-0.17.1-ffmpeg-6.patch" )

src_compile()
{
export MAX_JOBS="$(makeopts_jobs)" # Let ninja respect MAKEOPTS

# Ensure some ext_module sources are compiled before linking
export MAKEOPTS="-j1"

use cuda && export NVCC_FLAGS="$(cuda_gccdir -f | tr -d \")"
use rocm && addpredict /dev/kfd

distutils-r1_src_compile
}

python_test() {
use rocm && check_amdgpu

# https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions
rm -rf torchvision || die

epytest
}
Loading