Skip to contentSkip to conversation

opencl-{headers,clhpp}: update to release 2025.07.22

PATCH New Dmitry Baryshkov 1 participant 2 messages Jul 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 opencl-{headers,clhpp}: update to release 2025.07.22

Synchronize with OpenCL v3.0.19 specification release.

Also patch OpenCL CTS in order to prevent its breakage with the updated headers.

---
 ...1-Always-enable-beta-extensions-2330.patch | 32 ++++++++++++++
 ...uffer-supported-queue-properties-265.patch | 42 -------------------
 .../files/0001-Ignore-Compiler-Warnings.patch |  2 +-
 ...24.10.24.bb => opencl-clhpp_2025.07.22.bb} |  2 +-
 .../opencl/opencl-cts_2025.01.22.bb           |  1 +
 ....10.24.bb => opencl-headers_2025.07.22.bb} |  3 +-
 6 files changed, 36 insertions(+), 46 deletions(-)
 create mode 100644 meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch
 delete mode 100644 meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch
 rename meta-oe/recipes-core/opencl/{opencl-clhpp_2024.10.24.bb => opencl-clhpp_2025.07.22.bb} (91%)
 rename meta-oe/recipes-core/opencl/{opencl-headers_2024.10.24.bb => opencl-headers_2025.07.22.bb} (76%)
meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch new file +32 -0
new file mode 100644
index 000000000000..430f9575c4b3
@@ -0,0 +1,32 @@
+From 3a275fe81b6d436194f563e7a3d24f302d14a211 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?K=C3=A9vin=20Petit?= <[email protected]>
+Date: Tue, 11 Mar 2025 18:40:29 +0000
+Subject: [PATCH] Always enable beta extensions (#2330)
+
+`CL_ENABLE_BETA_EXTENSIONS` was just introduced in
+https://github.com/KhronosGroup/OpenCL-Headers/pull/276
+to guard provisional and other experimental extensions. The CTS
+currently assumes
+all definitions are always present.
+
+Signed-off-by: Kevin Petit <[email protected]>
+Upstream-Status: Backport [https://github.com/KhronosGroup/OpenCL-CTS/commit/3a275fe81b6d436194f563e7a3d24f302d14a211]
+---
+ CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 898f62e97bdc..8a93ea9fb843 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,6 +18,7 @@ add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_2_APIS=1)
+ add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS=1)
+ add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1)
+ add_definitions(-DCL_NO_EXTENSION_PROTOTYPES)
++add_definitions(-DCL_ENABLE_BETA_EXTENSIONS)
+ 
+ option(USE_CL_EXPERIMENTAL "Use Experimental definitions" OFF)
+ if(USE_CL_EXPERIMENTAL)
+-- 
+2.47.2
+
meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch deleted +0 -42

42 lines not on this page · raw message

meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch +1 -1
index 2e8b52d7945c..2495f195c18b 100644
@@ -17,8 +17,8 @@ Signed-off-by: Khem Raj <[email protected]>
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
 @@ -19,6 +19,16 @@ add_definitions(-DCL_USE_DEPRECATED_OPEN
- add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1)
  add_definitions(-DCL_NO_EXTENSION_PROTOTYPES)
+ add_definitions(-DCL_ENABLE_BETA_EXTENSIONS)
  
 +option(ENABLE_WERROR "Enable warnings as errors" ON)
 +
meta-oe/recipes-core/opencl/opencl-clhpp_2025.07.22.bb renamed from meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb +1 -1
similarity index 91%
rename from meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb
rename to meta-oe/recipes-core/opencl/opencl-clhpp_2025.07.22.bb
index 7335712d6f65..e1302f4963f6 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 DEPENDS = "opencl-headers"
 
-SRCREV = "c7b4aded1cab9560b226041dd962f63375a9a384"
+SRCREV = "2a608428f725cad7903ef55e1ce5b995895838f5"
 
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main"
 
meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb +1 -0
index c766a666401c..52c8c59f27e6 100644
@@ -10,6 +10,7 @@ RDEPENDS:${PN} += "python3-core python3-io"
 
 
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-CTS.git;protocol=https;branch=main;lfs=0 \
+           file://0001-Always-enable-beta-extensions-2330.patch \
 	   file://0001-Ignore-Compiler-Warnings.patch"
 
 SRCREV = "5b3518096ca7b82854daadb2b2fae704fe2d9cb5"
meta-oe/recipes-core/opencl/opencl-headers_2025.07.22.bb renamed from meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb +1 -2
similarity index 76%
rename from meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb
rename to meta-oe/recipes-core/opencl/opencl-headers_2025.07.22.bb
index 0ec2fe5f3375..3b5f948e7d6c 100644
@@ -4,9 +4,8 @@ LICENSE  = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 SECTION = "base"
 
-SRCREV = "4ea6df132107e3b4b9407f903204b5522fdffcd6"
+SRCREV = "8a97ebc88daa3495d6f57ec10bb515224400186f"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https \
-           file://0001-Command-buffer-supported-queue-properties-265.patch \
            "
 
 inherit cmake
Signature · 1 line
2.39.5
#1 lore raw

PATCH v2 2/2 opencl-cts: update to release 2025-04-14

Update OpenCL CTS to the latest release.

---
 ...1-Always-enable-beta-extensions-2330.patch | 32 -------------------
 ...2025.01.22.bb => opencl-cts_2025.04.14.bb} |  3 +-
 2 files changed, 1 insertion(+), 34 deletions(-)
 delete mode 100644 meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch
 rename meta-oe/recipes-core/opencl/{opencl-cts_2025.01.22.bb => opencl-cts_2025.04.14.bb} (90%)
meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch deleted +0 -32
deleted file mode 100644
index 430f9575c4b3..000000000000
@@ -1,32 +0,0 @@
-From 3a275fe81b6d436194f563e7a3d24f302d14a211 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?K=C3=A9vin=20Petit?= <[email protected]>
-Date: Tue, 11 Mar 2025 18:40:29 +0000
-Subject: [PATCH] Always enable beta extensions (#2330)
-
-`CL_ENABLE_BETA_EXTENSIONS` was just introduced in
-https://github.com/KhronosGroup/OpenCL-Headers/pull/276
-to guard provisional and other experimental extensions. The CTS
-currently assumes
-all definitions are always present.
-
-Signed-off-by: Kevin Petit <[email protected]>
-Upstream-Status: Backport [https://github.com/KhronosGroup/OpenCL-CTS/commit/3a275fe81b6d436194f563e7a3d24f302d14a211]
----
- CMakeLists.txt | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 898f62e97bdc..8a93ea9fb843 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -18,6 +18,7 @@ add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_2_APIS=1)
- add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS=1)
- add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1)
- add_definitions(-DCL_NO_EXTENSION_PROTOTYPES)
-+add_definitions(-DCL_ENABLE_BETA_EXTENSIONS)
- 
- option(USE_CL_EXPERIMENTAL "Use Experimental definitions" OFF)
- if(USE_CL_EXPERIMENTAL)
--- 
-2.47.2
-
meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb renamed from meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb +1 -2
similarity index 90%
rename from meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb
rename to meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb
index 52c8c59f27e6..9c6a55691fe2 100644
@@ -10,10 +10,9 @@ RDEPENDS:${PN} += "python3-core python3-io"
 
 
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-CTS.git;protocol=https;branch=main;lfs=0 \
-           file://0001-Always-enable-beta-extensions-2330.patch \
 	   file://0001-Ignore-Compiler-Warnings.patch"
 
-SRCREV = "5b3518096ca7b82854daadb2b2fae704fe2d9cb5"
+SRCREV = "e96edaef8b582c2412a2aab4b82f5c88af88617d"
 
 EXTRA_OECMAKE:append = " -DENABLE_WERROR=OFF -DCL_INCLUDE_DIR=${STAGING_INCDIR} -DCL_LIB_DIR=${STAGING_LIBDIR} -DOPENCL_LIBRARIES=OpenCL"
 
Signature · 1 line
2.39.5