Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: virtual/opencl/
Date: Wed, 01 Apr 2020 21:15:14
Message-Id: 1585775697.f0cb6e744add38bf4d3a05c0703dabb1f8ee4e5d.marecki@gentoo
1 commit: f0cb6e744add38bf4d3a05c0703dabb1f8ee4e5d
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 1 20:43:11 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 1 21:14:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0cb6e74
7
8 virtual/opencl: add dev-libs/ocl-icd as the fallback provider
9
10 Advantages:
11 * keyworded x86
12 * supports multilib on amd64
13 * all OpenCL-aware software should compile and link fine against it
14 * should make it easier for user to deploy out-of-tree OpenCL
15 providers (side note: all actual OpenCL providers currently
16 in the tree except x11-drivers/nvidia-drivers actually *require*
17 this to work), should they choose to do so
18
19 Disadvantages:
20 * essentially a hack to ensure the integrity of the dependency tree
21 on x86 and amd64/abi_x86_32 - most of the actual OpenCL providers
22 currently in the tree are 64-bit only anyway
23
24 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
25
26 virtual/opencl/opencl-2.ebuild | 4 ++++
27 1 file changed, 4 insertions(+)
28
29 diff --git a/virtual/opencl/opencl-2.ebuild b/virtual/opencl/opencl-2.ebuild
30 index 2e7f0791234..50fcd113e31 100644
31 --- a/virtual/opencl/opencl-2.ebuild
32 +++ b/virtual/opencl/opencl-2.ebuild
33 @@ -12,6 +12,9 @@ CARDS=( amdgpu i965 nvidia r600 radeonsi )
34 IUSE="${CARDS[@]/#/video_cards_}"
35
36 # intel-neo and intel-ocl-sdk are amd64-only
37 +# ocl-icd is essentially a dummy/you-are-on-your-own provider - it installs
38 +# header files to include in the source code and a library to link against
39 +# but does not support any actual devices
40 RDEPEND="app-eselect/eselect-opencl
41 || (
42 video_cards_i965? (
43 @@ -28,4 +31,5 @@ RDEPEND="app-eselect/eselect-opencl
44 video_cards_radeonsi? (
45 >=media-libs/mesa-9.1.6[opencl,X(+),${MULTILIB_USEDEP}] )
46 abi_x86_64? ( !abi_x86_32? ( dev-util/intel-ocl-sdk ) )
47 + dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
48 )"