public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/opencl-headers/
Date: Thu,  2 Apr 2020 00:21:29 +0000 (UTC)	[thread overview]
Message-ID: <1585786814.2285b1c837666dc816122187a8b4efbae563334a.marecki@gentoo> (raw)

commit:     2285b1c837666dc816122187a8b4efbae563334a
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  1 22:36:31 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Apr  2 00:20:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2285b1c8

dev-util/opencl-headers: new package

The first release of unified Khronos OpenCL headers, which unlike
old headers (which is what app-eselect/eselect-opencl installs)
work with all released OpenCL versions rather than having different
versions supported by files from different directories.

Note that in order to avoid file collisions with eselect-opencl this
package presently installs header files into
/usr/$(get_libdir)/OpenCL/vendors/opencl-icd-loader/include ,
which is why it needs multilib support and why it will likely not work
right when installed standalone (in contrast to being pulled in by
dev-libs/opencl-icd-loader).

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-util/opencl-headers/Manifest                   |  1 +
 dev-util/opencl-headers/metadata.xml               | 24 ++++++++++++++++++
 .../opencl-headers-2020.03.13.ebuild               | 29 ++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/dev-util/opencl-headers/Manifest b/dev-util/opencl-headers/Manifest
new file mode 100644
index 00000000000..21be9a936d4
--- /dev/null
+++ b/dev-util/opencl-headers/Manifest
@@ -0,0 +1 @@
+DIST opencl-headers-2020.03.13.tar.gz 48540 BLAKE2B 5befbf7b1ed9df7e45789f1a5c3ec15a2bb0bee4cf50f89e424b6c69534c045c0774fd6f6424d5311c5415c9e6714033b6c70d3c641f60c037a9c3fab3e00bb6 SHA512 4bf368325f6034b2c59b9d3a22f7c12eec078e5e5a0bdcc3f1f5870e211bf7d03ae7137897262440a9c98a35592f4405d85fae1b53246e56b5544af51bf9b39a

diff --git a/dev-util/opencl-headers/metadata.xml b/dev-util/opencl-headers/metadata.xml
new file mode 100644
index 00000000000..f5bc8eb8de5
--- /dev/null
+++ b/dev-util/opencl-headers/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>marecki@gentoo.org</email>
+		<name>Marek Szuba</name>
+	</maintainer>
+	<longdescription lang="en">
+		The OpenCL API headers in this package are unified headers and are designed to work
+		with all released OpenCL versions. This differs from previous OpenCL API headers,
+		where version-specific API headers either existed in separate branches, or
+		in separate folders in a branch.
+
+		By default, the OpenCL API headers in this repository are for the latest OpenCL
+		version supported. To use these API headers to target a different OpenCL version,
+		an application may #define the preprocessor value CL_TARGET_OPENCL_VERSION before
+		including the OpenCL API headers. The CL_TARGET_OPENCL_VERSION is a three digit
+		decimal value representing the OpenCL API version.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">KhronosGroup/OpenCL-Headers</remote-id>
+	</upstream>
+</pkgmetadata>
+

diff --git a/dev-util/opencl-headers/opencl-headers-2020.03.13.ebuild b/dev-util/opencl-headers/opencl-headers-2020.03.13.ebuild
new file mode 100644
index 00000000000..0c64e9cc994
--- /dev/null
+++ b/dev-util/opencl-headers/opencl-headers-2020.03.13.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal
+
+MY_PN="OpenCL-Headers"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Unified C language headers for the OpenCL API"
+HOMEPAGE="https://github.com/KhronosGroup/OpenCL-Headers"
+SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${MY_P}"
+
+multilib_src_install() {
+	# Ideally we would install these directly into /usr/include but that would conflict
+	# with eselect-opencl, therefore we install these into the vendor directory used by
+	# dev-libs/opencl-icd-loader. Hopefully we will get this resolved soon and we can
+	# stop messing with multilib in this package.
+	local ocl_dir="/usr/$(get_libdir)/OpenCL/vendors/opencl-icd-loader"
+	insinto "${ocl_dir}"/include
+	doins -r "${S}"/CL
+}


             reply	other threads:[~2020-04-02  0:21 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02  0:21 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-08 22:52 [gentoo-commits] repo/gentoo:master commit in: dev-util/opencl-headers/ Marek Szuba
2020-05-12 12:50 Mikle Kolyada
2020-05-14 21:29 Thomas Deutschmann
2020-06-19 14:31 Marek Szuba
2020-11-06 20:38 Sam James
2020-11-12 21:03 Thomas Deutschmann
2021-03-20  9:02 罗百科
2021-04-27 11:05 Marek Szuba
2021-05-06 17:07 Marek Szuba
2021-05-13 14:27 Marek Szuba
2021-06-23  4:43 Sam James
2021-06-23  6:29 Agostino Sarubbo
2021-06-23  9:15 Marek Szuba
2021-06-26  9:45 罗百科
2021-08-28 20:21 Marek Szuba
2021-08-28 23:11 Marek Szuba
2021-09-29 14:07 Sam James
2021-09-29 14:07 Sam James
2022-02-09  0:20 Marek Szuba
2022-03-01 16:47 Marek Szuba
2022-04-10  9:05 Agostino Sarubbo
2022-04-11  6:35 Jakov Smolić
2022-04-11 11:16 Marek Szuba
2022-06-01 23:43 Marek Szuba
2022-07-24  1:04 Sam James
2022-07-26  4:49 Sam James
2022-09-05 21:57 Marek Szuba
2022-09-26  1:01 Marek Szuba
2022-09-26  9:07 Marek Szuba
2022-10-04  0:53 Marek Szuba
2023-01-28  0:15 Sam James
2023-01-28  0:26 Sam James
2023-01-28  1:40 Sam James
2023-01-28 22:55 Marek Szuba
2023-02-24 22:07 Marek Szuba
2023-04-08  8:30 Arthur Zamarin
2023-04-08  9:00 Arthur Zamarin
2023-04-08 11:13 Arthur Zamarin
2023-04-08 18:49 Marek Szuba
2023-04-12  6:05 Yixun Lan
2023-04-21  8:56 Marek Szuba
2023-07-15  3:10 Sam James
2023-07-15  8:19 Arthur Zamarin
2023-07-15  8:19 Arthur Zamarin
2023-08-14 10:16 Marek Szuba
2023-12-24 11:45 Marek Szuba
2024-04-24 14:13 Sam James
2024-04-24 14:17 Sam James
2024-04-24 14:17 Sam James
2024-05-23 13:34 WANG Xuerui
2024-06-12 13:52 Marek Szuba
2024-11-23 13:02 Arthur Zamarin
2024-11-23 15:42 Michał Górny
2024-11-25 20:42 Sam James
2025-01-05  1:37 Sam James
2025-01-09 15:13 Conrad Kostecki
2025-01-14 15:43 Petr Vaněk
2025-01-15 18:44 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1585786814.2285b1c837666dc816122187a8b4efbae563334a.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox