From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/pygpu/Manifest | 1 + dev-python/pygpu/metadata.xml | 20 +++++++++++++++++++ dev-python/pygpu/pygpu-0.6.7.ebuild | 39 +++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 dev-python/pygpu/Manifest create mode 100644 dev-python/pygpu/metadata.xml create mode 100644 dev-python/pygpu/pygpu-0.6.7.ebuild (limited to 'dev-python/pygpu') diff --git a/dev-python/pygpu/Manifest b/dev-python/pygpu/Manifest new file mode 100644 index 000000000000..95554ae2bb41 --- /dev/null +++ b/dev-python/pygpu/Manifest @@ -0,0 +1 @@ +DIST pygpu-0.6.7.tar.gz 256440 BLAKE2B cc0880259c368c02fe0fca1a7f9424ad78f057540426d28179ee2cb20a2559853566c9ebb7de3488d5fdf0fa0eefb4e9f16db198cda2727370d567fd16363480 SHA512 39cdb67ec12d0f939d7a3ebef9726c40e64387413200addbeaf205db4151d09efd90118fec4a71b9d1f81fdde9b52e37d2d97763bf2cc9efa1667c5b9ff716b2 diff --git a/dev-python/pygpu/metadata.xml b/dev-python/pygpu/metadata.xml new file mode 100644 index 000000000000..f4db03964fb2 --- /dev/null +++ b/dev-python/pygpu/metadata.xml @@ -0,0 +1,20 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + This package contains the Python bindings to libgpuarray which + are build in the top of NumPy. + + + Theano/libgpuarray + + + Enable NVIDIA CUDA toolkit support + Enable OpenCL support + + gentoo-staging + diff --git a/dev-python/pygpu/pygpu-0.6.7.ebuild b/dev-python/pygpu/pygpu-0.6.7.ebuild new file mode 100644 index 000000000000..c35fce34e75f --- /dev/null +++ b/dev-python/pygpu/pygpu-0.6.7.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +MYPV=${PV/_/-} + +DESCRIPTION="Python bindings to libgpuarray" +HOMEPAGE="http://deeplearning.net/software/libgpuarray/" +SRC_URI="https://github.com/Theano/libgpuarray/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cuda opencl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/mako[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-libs/libgpuarray:=[cuda?,opencl?] +" +DEPEND="${RDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" + +S="${WORKDIR}/libgpuarray-${MYPV}" + +python_test() { + local DEVICE=cuda + use opencl && DEVICE=opencl + nosetests -svw "${BUILD_DIR}/lib/" || die +} -- cgit v1.3.1