Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 794636 Details for
Bug 861251
dev-python/pyopencl: enable FEATURES=test using dev-libs/pocl to run OpenCL code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to pyopencl ebuild
0001-dev-python-pyopencl-Enable-FEATURES-test-using-dev-l.patch (text/plain), 1.87 KB, created by
Chris Kerr
on 2022-07-26 15:55:34 UTC
(
hide
)
Description:
Patch to pyopencl ebuild
Filename:
MIME Type:
Creator:
Chris Kerr
Created:
2022-07-26 15:55:34 UTC
Size:
1.87 KB
patch
obsolete
>From d8cef869ca0be9409dc94130ee8d8b65d55c3361 Mon Sep 17 00:00:00 2001 >From: Chris Kerr <chris.kerr@mykolab.ch> >Date: Tue, 26 Jul 2022 18:29:48 +0300 >Subject: [PATCH] dev-python/pyopencl: Enable FEATURES=test using dev-libs/pocl > as OpenCL implementation > >--- > dev-python/pyopencl/pyopencl-2022.1.6.ebuild | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) > >diff --git a/dev-python/pyopencl/pyopencl-2022.1.6.ebuild b/dev-python/pyopencl/pyopencl-2022.1.6.ebuild >index aaaad73250..92143e047e 100644 >--- a/dev-python/pyopencl/pyopencl-2022.1.6.ebuild >+++ b/dev-python/pyopencl/pyopencl-2022.1.6.ebuild >@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" > LICENSE="GPL-2" > SLOT="0" > KEYWORDS="~amd64 ~ppc64" >-IUSE="examples opengl" >+IUSE="examples opengl test" > > DEPEND=">=virtual/opencl-2" > RDEPEND="${DEPEND} >@@ -27,15 +27,10 @@ RDEPEND="${DEPEND} > # libglvnd is only needed for the headers > BDEPEND="dev-python/numpy[${PYTHON_USEDEP}] > >=dev-python/pybind11-2.5.0[${PYTHON_USEDEP}] >- opengl? ( media-libs/libglvnd )" >+ opengl? ( media-libs/libglvnd ) >+ test? ( dev-libs/pocl )" > >-# The test suite fails if there are no OpenCL platforms available, and >-# even if there is one (which requires the presence of both an OpenCL >-# runtime *and* hardware supported by it - simply emerging any runtime >-# is not enough) the vast majority of tests end up skipped because by >-# default the portage user hasn't got sufficient privileges to talk >-# to the GPU. >-RESTRICT="test" >+distutils_enable_tests pytest > > python_configure_all() { > local myconf=() >@@ -47,6 +42,13 @@ python_configure_all() { > "${myconf[@]}" > } > >+src_test() { >+ # Use dev-libs/pocl for testing; ignore any other OpenCL devices that might be present >+ export PYOPENCL_TEST="portable:pthread" >+ >+ distutils-r1_src_test >+} >+ > python_install_all() { > if use examples; then > dodoc -r examples >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 861251
:
794636
|
794639
|
794855
|
795862
|
796012