1 |
commit: 5333f190c3388bf71552464fd59ab6dd80ea24a4 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 9 14:56:44 2017 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 9 15:10:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5333f190 |
7 |
|
8 |
virtual/opencl: add VIDEO_CARDS=amdgpu support |
9 |
|
10 |
Radeon Open Compute has not been added to Gentoo yet but even without it, it is possible |
11 |
to enable OpenCL on recent AMD cards by combining OpenCL libraries from the proprietary |
12 |
AMDGPU-Pro stack with the Open Source amdgpu stack. It's a hack but it works, at least |
13 |
on Polaris GPUs. |
14 |
|
15 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
16 |
|
17 |
virtual/opencl/opencl-0-r5.ebuild | 6 ++++-- |
18 |
1 file changed, 4 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/virtual/opencl/opencl-0-r5.ebuild b/virtual/opencl/opencl-0-r5.ebuild |
21 |
index d9e8a055e43..f137f7884b8 100644 |
22 |
--- a/virtual/opencl/opencl-0-r5.ebuild |
23 |
+++ b/virtual/opencl/opencl-0-r5.ebuild |
24 |
@@ -8,13 +8,15 @@ inherit multilib-build |
25 |
DESCRIPTION="Virtual for OpenCL implementations" |
26 |
SLOT="0" |
27 |
KEYWORDS="~amd64 ~arm64 ~x86" |
28 |
-CARDS=( fglrx i965 nvidia ) |
29 |
+CARDS=( amdgpu fglrx i965 nvidia ) |
30 |
IUSE="${CARDS[@]/#/video_cards_}" |
31 |
|
32 |
-# intel-ocl-sdk is amd64-only |
33 |
+# amdgpu-pro-opencl and intel-ocl-sdk are amd64-only |
34 |
RDEPEND="app-eselect/eselect-opencl |
35 |
|| ( |
36 |
>=media-libs/mesa-9.1.6[opencl,${MULTILIB_USEDEP}] |
37 |
+ video_cards_amdgpu? ( |
38 |
+ abi_x86_64? ( !abi_x86_32? ( dev-libs/amdgpu-pro-opencl ) ) ) |
39 |
video_cards_fglrx? ( |
40 |
>=x11-drivers/ati-drivers-12.1-r1 ) |
41 |
video_cards_i965? ( |