1 |
Instead of pulling in various OpenCL runtimes, only depend on |
2 |
eselect-opencl and an OpenCL ICD loader (dev-libs/ocl-icd) in order |
3 |
to provide hardware-independent header files and libraries for |
4 |
OpenCL-aware software to build against. Actual runtimes are now simply |
5 |
suggested to the user via a postinst message. |
6 |
|
7 |
Signed-off-by: Marek Szuba <marecki@g.o> |
8 |
--- |
9 |
virtual/opencl/opencl-3.ebuild | 31 +++++++++++++++++++++++++++++++ |
10 |
1 file changed, 31 insertions(+) |
11 |
create mode 100644 virtual/opencl/opencl-3.ebuild |
12 |
|
13 |
diff --git a/virtual/opencl/opencl-3.ebuild b/virtual/opencl/opencl-3.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..9851d1ccbeb |
16 |
--- /dev/null |
17 |
+++ b/virtual/opencl/opencl-3.ebuild |
18 |
@@ -0,0 +1,31 @@ |
19 |
+# Copyright 1999-2020 Gentoo Authors |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+ |
24 |
+inherit multilib-build |
25 |
+ |
26 |
+DESCRIPTION="Virtual for OpenCL API" |
27 |
+SLOT="0" |
28 |
+KEYWORDS="~amd64 ~x86" |
29 |
+ |
30 |
+RDEPEND="app-eselect/eselect-opencl |
31 |
+ dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]" |
32 |
+ |
33 |
+pkg_postinst() { |
34 |
+ elog |
35 |
+ elog "In order to take advantage of OpenCL you will need a runtime for your hardware." |
36 |
+ elog "Currently included in Gentoo are:" |
37 |
+ elog |
38 |
+ elog " dev-libs/intel-neo - integrated Intel GPUs from Broadwell onwards. Open. 64-bit only" |
39 |
+ elog " dev-libs/rocm-opencl-runtime - AMD GPUs supported by the amdgpu kernel driver. Mostly open [1]. 64-bit only" |
40 |
+ elog " media-libs/mesa[opencl] - some older AMD GPUs; see [2]. Open. 32-bit support" |
41 |
+ elog " dev-libs/amdgpu-pro-opencl - AMD Polaris GPUs. Proprietary, provided as-is. 32-bit support" |
42 |
+ elog " dev-util/intel-ocl-sdk - Intel CPUs. Proprietary. 64-bit only" |
43 |
+ elog " x11-drivers/nvidia-drivers[uvm] - Nvidia GPUs; specific package versions required for older ones [3]. Proprietary. 32-bit support" |
44 |
+ elog |
45 |
+ elog " [1] Proprietary library from dev-libs/hsa-ext-rocr required for image support" |
46 |
+ elog " [2] https://dri.freedesktop.org/wiki/GalliumCompute/" |
47 |
+ elog " [3] https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/" |
48 |
+ elog |
49 |
+} |
50 |
-- |
51 |
2.24.1 |