dev-libs/opencl-icd-loader - 2025.07.22 (gentoo)

Search

Notice: This package is in a virtual group: virtual/opencl

Install

Install this version:

emerge -a =dev-libs/opencl-icd-loader-2025.07.22

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/opencl-icd-loader-2025.07.22

Or alternatively:

emerge --autounmask-write -a =dev-libs/opencl-icd-loader-2025.07.22

Package Information

Description:
Official Khronos OpenCL ICD Loader
Homepage:
https://github.com/KhronosGroup/OpenCL-ICD-Loader
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
2025.07.22 8 ~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake-multilib prefix

MY_PN="OpenCL-ICD-Loader"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Official Khronos OpenCL ICD Loader"
HOMEPAGE="https://github.com/KhronosGroup/OpenCL-ICD-Loader"
SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${MY_P}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="test"

RESTRICT="!test? ( test )"

DEPEND="
	${RDEPEND}
	>=dev-util/opencl-headers-${PV}
"

src_prepare() {
	hprefixify loader/icd_platform.h
	cmake_src_prepare
}

multilib_src_configure() {
	local mycmakeargs=(
		-DBUILD_TESTING=$(usex test)
	)
	cmake_src_configure
}

multilib_src_test() {
	local -x OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so"
	local -x OCL_ICD_VENDORS="/dev/null"
	cmake_src_test
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/opencl-icd-loader | euse -E <flag> -p dev-libs/opencl-icd-loader | euse -D <flag> -p dev-libs/opencl-icd-loader

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	
	>=dev-util/opencl-headers-2025.07.22

Manifest for 2025.07.22

Type File Size Source URLs
DIST opencl-icd-loader-2025.07.22.tar.gz 110431 bytes https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/v2025.07.22.tar.gz