summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch32
-rw-r--r--meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch42
-rw-r--r--meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch2
-rw-r--r--meta-oe/recipes-core/opencl/opencl-clhpp_2025.07.22.bb (renamed from meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb)2
-rw-r--r--meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb1
-rw-r--r--meta-oe/recipes-core/opencl/opencl-headers_2025.07.22.bb (renamed from meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb)3
6 files changed, 36 insertions, 46 deletions
diff --git a/meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch b/meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch
new file mode 100644
index 0000000000..430f9575c4
--- /dev/null
+++ b/meta-oe/recipes-core/opencl/files/0001-Always-enable-beta-extensions-2330.patch
@@ -0,0 +1,32 @@
1From 3a275fe81b6d436194f563e7a3d24f302d14a211 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?K=C3=A9vin=20Petit?= <kpet@free.fr>
3Date: Tue, 11 Mar 2025 18:40:29 +0000
4Subject: [PATCH] Always enable beta extensions (#2330)
5
6`CL_ENABLE_BETA_EXTENSIONS` was just introduced in
7https://github.com/KhronosGroup/OpenCL-Headers/pull/276
8to guard provisional and other experimental extensions. The CTS
9currently assumes
10all definitions are always present.
11
12Signed-off-by: Kevin Petit <kevin.petit@arm.com>
13Upstream-Status: Backport [https://github.com/KhronosGroup/OpenCL-CTS/commit/3a275fe81b6d436194f563e7a3d24f302d14a211]
14---
15 CMakeLists.txt | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/CMakeLists.txt b/CMakeLists.txt
19index 898f62e97bdc..8a93ea9fb843 100644
20--- a/CMakeLists.txt
21+++ b/CMakeLists.txt
22@@ -18,6 +18,7 @@ add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_2_APIS=1)
23 add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS=1)
24 add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1)
25 add_definitions(-DCL_NO_EXTENSION_PROTOTYPES)
26+add_definitions(-DCL_ENABLE_BETA_EXTENSIONS)
27
28 option(USE_CL_EXPERIMENTAL "Use Experimental definitions" OFF)
29 if(USE_CL_EXPERIMENTAL)
30--
312.47.2
32
diff --git a/meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch b/meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch
deleted file mode 100644
index 1654bf48c6..0000000000
--- a/meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 85888592e178c7923cd1bc1d69cee530906c80a4 Mon Sep 17 00:00:00 2001
2From: Ewan Crawford <ewan@codeplay.com>
3Date: Tue, 14 Jan 2025 17:14:29 +0000
4Subject: [PATCH] Command-buffer supported queue properties (#265)
5
6Header update generated from OpenCL-Docs PR XML change
7https://github.com/KhronosGroup/OpenCL-Docs/pull/850
8
9Upstream-Status: Backport [https://github.com/KhronosGroup/OpenCL-Headers/commit/d32c5bb219d7ba90ad4f251cf0bb903c08f8e5db]
10Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
11---
12 CL/cl_ext.h | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/CL/cl_ext.h b/CL/cl_ext.h
16index 1a48985e167b..be5b473ff150 100644
17--- a/CL/cl_ext.h
18+++ b/CL/cl_ext.h
19@@ -52,7 +52,7 @@ extern "C" {
20 "cl_khr_command_buffer"
21
22
23-#define CL_KHR_COMMAND_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 5)
24+#define CL_KHR_COMMAND_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 6)
25
26 typedef cl_bitfield cl_device_command_buffer_capabilities_khr;
27 typedef struct _cl_command_buffer_khr* cl_command_buffer_khr;
28@@ -66,13 +66,13 @@ typedef struct _cl_mutable_command_khr* cl_mutable_command_khr;
29
30 /* cl_device_info */
31 #define CL_DEVICE_COMMAND_BUFFER_CAPABILITIES_KHR 0x12A9
32+#define CL_DEVICE_COMMAND_BUFFER_SUPPORTED_QUEUE_PROPERTIES_KHR 0x129A
33 #define CL_DEVICE_COMMAND_BUFFER_REQUIRED_QUEUE_PROPERTIES_KHR 0x12AA
34
35 /* cl_device_command_buffer_capabilities_khr - bitfield */
36 #define CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR (1 << 0)
37 #define CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR (1 << 1)
38 #define CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR (1 << 2)
39-#define CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR (1 << 3)
40
41 /* cl_command_buffer_properties_khr */
42 #define CL_COMMAND_BUFFER_FLAGS_KHR 0x1293
diff --git a/meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch b/meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch
index 2e8b52d794..2495f195c1 100644
--- a/meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch
+++ b/meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch
@@ -17,8 +17,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17--- a/CMakeLists.txt 17--- a/CMakeLists.txt
18+++ b/CMakeLists.txt 18+++ b/CMakeLists.txt
19@@ -19,6 +19,16 @@ add_definitions(-DCL_USE_DEPRECATED_OPEN 19@@ -19,6 +19,16 @@ add_definitions(-DCL_USE_DEPRECATED_OPEN
20 add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1)
21 add_definitions(-DCL_NO_EXTENSION_PROTOTYPES) 20 add_definitions(-DCL_NO_EXTENSION_PROTOTYPES)
21 add_definitions(-DCL_ENABLE_BETA_EXTENSIONS)
22 22
23+option(ENABLE_WERROR "Enable warnings as errors" ON) 23+option(ENABLE_WERROR "Enable warnings as errors" ON)
24+ 24+
diff --git a/meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb b/meta-oe/recipes-core/opencl/opencl-clhpp_2025.07.22.bb
index 7335712d6f..e1302f4963 100644
--- a/meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb
+++ b/meta-oe/recipes-core/opencl/opencl-clhpp_2025.07.22.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
6 6
7DEPENDS = "opencl-headers" 7DEPENDS = "opencl-headers"
8 8
9SRCREV = "c7b4aded1cab9560b226041dd962f63375a9a384" 9SRCREV = "2a608428f725cad7903ef55e1ce5b995895838f5"
10 10
11SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main" 11SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main"
12 12
diff --git a/meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb b/meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb
index c766a66640..52c8c59f27 100644
--- a/meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb
+++ b/meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb
@@ -10,6 +10,7 @@ RDEPENDS:${PN} += "python3-core python3-io"
10 10
11 11
12SRC_URI = "git://github.com/KhronosGroup/OpenCL-CTS.git;protocol=https;branch=main;lfs=0 \ 12SRC_URI = "git://github.com/KhronosGroup/OpenCL-CTS.git;protocol=https;branch=main;lfs=0 \
13 file://0001-Always-enable-beta-extensions-2330.patch \
13 file://0001-Ignore-Compiler-Warnings.patch" 14 file://0001-Ignore-Compiler-Warnings.patch"
14 15
15SRCREV = "5b3518096ca7b82854daadb2b2fae704fe2d9cb5" 16SRCREV = "5b3518096ca7b82854daadb2b2fae704fe2d9cb5"
diff --git a/meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb b/meta-oe/recipes-core/opencl/opencl-headers_2025.07.22.bb
index 0ec2fe5f33..3b5f948e7d 100644
--- a/meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb
+++ b/meta-oe/recipes-core/opencl/opencl-headers_2025.07.22.bb
@@ -4,9 +4,8 @@ LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
5SECTION = "base" 5SECTION = "base"
6 6
7SRCREV = "4ea6df132107e3b4b9407f903204b5522fdffcd6" 7SRCREV = "8a97ebc88daa3495d6f57ec10bb515224400186f"
8SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https \ 8SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https \
9 file://0001-Command-buffer-supported-queue-properties-265.patch \
10 " 9 "
11 10
12inherit cmake 11inherit cmake