summaryrefslogtreecommitdiff
blob: 2e7f079123478c1260b30018920cfa6bbe81bb99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit multilib-build

DESCRIPTION="Virtual for OpenCL implementations"
SLOT="0"
KEYWORDS="amd64 x86"
CARDS=( amdgpu i965 nvidia r600 radeonsi )
IUSE="${CARDS[@]/#/video_cards_}"

# intel-neo and intel-ocl-sdk are amd64-only
RDEPEND="app-eselect/eselect-opencl
	|| (
		video_cards_i965? (
			abi_x86_64? ( !abi_x86_32? ( dev-libs/intel-neo ) )
		)
		video_cards_amdgpu? ( || (
			dev-libs/rocm-opencl-runtime
			dev-libs/amdgpu-pro-opencl ) )
		video_cards_nvidia? ( || (
			>=x11-drivers/nvidia-drivers-290.10-r2[uvm(-)]
			>=media-libs/mesa-9.1.6[opencl,X(+),${MULTILIB_USEDEP}] ) )
		video_cards_r600? (
			>=media-libs/mesa-9.1.6[opencl,X(+),${MULTILIB_USEDEP}] )
		video_cards_radeonsi? (
			>=media-libs/mesa-9.1.6[opencl,X(+),${MULTILIB_USEDEP}] )
		abi_x86_64? ( !abi_x86_32? ( dev-util/intel-ocl-sdk ) )
	)"