public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/torchvision/
Date: Sun, 26 Dec 2021 14:26:33 +0000 (UTC)	[thread overview]
Message-ID: <1640528785.039d53dff3102d3ac7bdcc3d102c68459a084439.andrewammerlaan@gentoo> (raw)

commit:     039d53dff3102d3ac7bdcc3d102c68459a084439
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 26 14:26:25 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Dec 26 14:26:25 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=039d53df

sci-libs/torchvision: new package

Closes: https://github.com/gentoo/sci/issues/943
Closes: https://github.com/gentoo/sci/pull/944
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/torchvision/metadata.xml              | 11 +++++++
 sci-libs/torchvision/torchvision-0.11.2.ebuild | 45 ++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/sci-libs/torchvision/metadata.xml b/sci-libs/torchvision/metadata.xml
new file mode 100644
index 000000000..ad3ef354b
--- /dev/null
+++ b/sci-libs/torchvision/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+    <maintainer type="person">
+        <email>jpizarrocallejas@gmail.com</email>
+        <name>Jorge Pizarro Callejas</name>
+    </maintainer>
+    <use>
+        <flag name="cuda">Enable CUDA support if enabled in PyTorch</flag>
+    </use>
+</pkgmetadata>

diff --git a/sci-libs/torchvision/torchvision-0.11.2.ebuild b/sci-libs/torchvision/torchvision-0.11.2.ebuild
new file mode 100644
index 000000000..6c58eeb6e
--- /dev/null
+++ b/sci-libs/torchvision/torchvision-0.11.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_10 )
+
+inherit distutils-r1
+
+DESCRIPTION="Datasets, transforms and models to specific to computer vision"
+HOMEPAGE="https://github.com/pytorch/vision"
+SRC_URI="https://github.com/pytorch/vision/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cuda test"
+
+RDEPEND="
+	dev-python/av[${PYTHON_USEDEP}]
+	dev-python/numpy[${PYTHON_USEDEP}]
+	dev-python/pillow[${PYTHON_USEDEP}]
+	dev-python/six[${PYTHON_USEDEP}]
+	dev-python/tqdm[${PYTHON_USEDEP}]
+	dev-python/scipy[${PYTHON_USEDEP}]
+	sci-libs/pytorch[cuda?,python,${PYTHON_USEDEP}]
+	media-video/ffmpeg
+	dev-qt/qtcore:5
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	test? (
+		dev-python/mock[${PYTHON_USEDEP}]
+	)"
+
+S="${WORKDIR}/vision-${PV}"
+
+distutils_enable_tests pytest
+
+pkg_setup() {
+	if use cuda; then
+		export FORCE_CUDA=1
+		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"
+	fi
+}


             reply	other threads:[~2021-12-26 14:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-26 14:26 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-26 14:43 [gentoo-commits] proj/sci:master commit in: sci-libs/torchvision/ Andrew Ammerlaan
2021-12-26 14:49 Andrew Ammerlaan
2022-07-03  8:46 Andrew Ammerlaan
2022-07-05 14:41 Andrew Ammerlaan
2022-12-01 21:58 Andrew Ammerlaan
2023-01-03 19:05 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1640528785.039d53dff3102d3ac7bdcc3d102c68459a084439.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox