summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2017-08-09 16:55:44 +0159
committerMarek Szuba <marecki@gentoo.org>2017-08-09 17:09:01 +0159
commit5333f190c3388bf71552464fd59ab6dd80ea24a4 (patch)
treecd016e938fa5e529e2502dd9bde1ecb13a8bb209 /virtual/opencl/opencl-0-r5.ebuild
parentnet-analyzer/prometheus: Version bump to 2.0.0_beta0 (diff)
downloadgentoo-5333f190c3388bf71552464fd59ab6dd80ea24a4.tar.gz
gentoo-5333f190c3388bf71552464fd59ab6dd80ea24a4.tar.bz2
gentoo-5333f190c3388bf71552464fd59ab6dd80ea24a4.zip
virtual/opencl: add VIDEO_CARDS=amdgpu support
Radeon Open Compute has not been added to Gentoo yet but even without it, it is possible to enable OpenCL on recent AMD cards by combining OpenCL libraries from the proprietary AMDGPU-Pro stack with the Open Source amdgpu stack. It's a hack but it works, at least on Polaris GPUs. Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'virtual/opencl/opencl-0-r5.ebuild')
-rw-r--r--virtual/opencl/opencl-0-r5.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/virtual/opencl/opencl-0-r5.ebuild b/virtual/opencl/opencl-0-r5.ebuild
index d9e8a055e436..f137f7884b8a 100644
--- a/virtual/opencl/opencl-0-r5.ebuild
+++ b/virtual/opencl/opencl-0-r5.ebuild
@@ -8,13 +8,15 @@ inherit multilib-build
DESCRIPTION="Virtual for OpenCL implementations"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
-CARDS=( fglrx i965 nvidia )
+CARDS=( amdgpu fglrx i965 nvidia )
IUSE="${CARDS[@]/#/video_cards_}"
-# intel-ocl-sdk is amd64-only
+# amdgpu-pro-opencl and intel-ocl-sdk are amd64-only
RDEPEND="app-eselect/eselect-opencl
|| (
>=media-libs/mesa-9.1.6[opencl,${MULTILIB_USEDEP}]
+ video_cards_amdgpu? (
+ abi_x86_64? ( !abi_x86_32? ( dev-libs/amdgpu-pro-opencl ) ) )
video_cards_fglrx? (
>=x11-drivers/ati-drivers-12.1-r1 )
video_cards_i965? (