From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31BAB1396D2 for ; Wed, 9 Aug 2017 15:10:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CDFC1FC03C; Wed, 9 Aug 2017 15:10:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F1CA1FC03C for ; Wed, 9 Aug 2017 15:10:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A95333BE2E for ; Wed, 9 Aug 2017 15:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C257475D1 for ; Wed, 9 Aug 2017 15:10:08 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1502291401.5333f190c3388bf71552464fd59ab6dd80ea24a4.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: virtual/opencl/ X-VCS-Repository: repo/gentoo X-VCS-Files: virtual/opencl/opencl-0-r5.ebuild X-VCS-Directories: virtual/opencl/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 5333f190c3388bf71552464fd59ab6dd80ea24a4 X-VCS-Branch: master Date: Wed, 9 Aug 2017 15:10:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fbe58932-9caa-4167-b3ab-395821413ae6 X-Archives-Hash: cb9d07daaa33d530a493fc3fc0d4b67c commit: 5333f190c3388bf71552464fd59ab6dd80ea24a4 Author: Marek Szuba gentoo org> AuthorDate: Wed Aug 9 14:56:44 2017 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Aug 9 15:10:01 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5333f190 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 virtual/opencl/opencl-0-r5.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/virtual/opencl/opencl-0-r5.ebuild b/virtual/opencl/opencl-0-r5.ebuild index d9e8a055e43..f137f7884b8 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? (