Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546320 - media-libs/mesa - add USE=opencl-icd
Summary: media-libs/mesa - add USE=opencl-icd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-12 07:28 UTC by linedot
Modified: 2018-10-08 15:43 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mesa-17.3.0_rc4.ebuild.patch (mesa-17.3.0_rc4.ebuild.patch,1.17 KB, patch)
2017-11-15 21:58 UTC, Andrei Slavoiu
Details | Diff
mesa-17.3.0_rc4.ebuild.patch (mesa-17.3.0_rc4.ebuild.patch,1.17 KB, patch)
2017-11-15 22:16 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description linedot 2015-04-12 07:28:11 UTC
mesa can be compiled with --enable-opencl-icd. This can be used to build the library with an icd loader for OpenCL. The mesa OpenCL platform then becomes available when dev-libs/ocl-icd is installed and the opencl eselect profile is set to ocl-icd.

I think a use flag to compile mesa with OpenCL icd support is appropriate.

Reproducible: Always
Comment 1 Matt Turner gentoo-dev 2015-08-29 22:23:36 UTC
Is there a benefit in it being configurable, or should we simply use --enable-opencl-icd whenever USE=opencl is enabled?
Comment 2 Andrew Savchenko gentoo-dev 2015-08-30 18:08:28 UTC
You may enable it by default, this will be a good choise, but it is a possible case when user want opencl support, but doesn't want icd interface, e.g. to reduce size, codepath or to improve security.
Comment 3 Andrei Slavoiu 2017-11-15 21:56:25 UTC
Having this in portage would also help with running binary only apps that require OPENCL_1.0 versioned symbols. dev-libs/ocl-icd already exports it, mesa developers don't seem willing to do it. See https://bugs.freedesktop.org/show_bug.cgi?id=61417
Comment 4 Andrei Slavoiu 2017-11-15 21:58:04 UTC
Created attachment 504462 [details, diff]
mesa-17.3.0_rc4.ebuild.patch

Patch that adds the the opencl-icd use flag to the latest version of mesa in portage
Comment 5 Andrei Slavoiu 2017-11-15 22:16:26 UTC
Created attachment 504466 [details, diff]
mesa-17.3.0_rc4.ebuild.patch

Fix typo
Comment 6 Andrei Slavoiu 2017-12-12 20:09:19 UTC
Come on, this is a trivial fix, and if you still have doubts about adding an use flag for it or not: you definitely want to add an use flag as dev-libs/ocl-icd is using ruby, and a lot of people with minimalist installs would be annoyed if mesa would suddenly drag it in for no reason.
Comment 7 Larry the Git Cow gentoo-dev 2018-10-08 15:43:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e276a5eab8552202db5988843c41ef7007759475

commit e276a5eab8552202db5988843c41ef7007759475
Author:     Jan Vesely <jano.vesely@gmail.com>
AuthorDate: 2018-10-06 17:06:24 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-10-08 15:43:13 +0000

    media-libs/mesa: Use ICD version of OpenCL
    
    Closes: https://github.com/gentoo/gentoo/pull/9836
    Closes: https://bugs.gentoo.org/546320
    Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-18.2.2-r1.ebuild | 526 ++++++++++++++++++++++++++++++++++
 media-libs/mesa/mesa-9999.ebuild      |  34 +--
 2 files changed, 532 insertions(+), 28 deletions(-)