diff options
Diffstat (limited to 'meta-oe/recipes-core/opencl')
-rw-r--r-- | meta-oe/recipes-core/opencl/clpeak_1.1.5.bb | 14 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch | 42 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch | 43 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb | 1 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb (renamed from meta-oe/recipes-core/opencl/opencl-clhpp_git.bb) | 14 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb | 30 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb (renamed from meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb) | 17 | ||||
-rw-r--r-- | meta-oe/recipes-core/opencl/opencl-icd-loader_2024.05.08.bb | 1 |
8 files changed, 145 insertions, 17 deletions
diff --git a/meta-oe/recipes-core/opencl/clpeak_1.1.5.bb b/meta-oe/recipes-core/opencl/clpeak_1.1.5.bb new file mode 100644 index 0000000000..a765f1530f --- /dev/null +++ b/meta-oe/recipes-core/opencl/clpeak_1.1.5.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | SUMMARY = "OpenCL synthetic benchmarking tool" | ||
2 | DESCRIPTION = "OpenCL benchmarking tool to measure peak capabilities" | ||
3 | |||
4 | SRC_URI = "git://github.com/krrishnarraj/clpeak.git;protocol=https;branch=master" | ||
5 | |||
6 | LICENSE = "Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
8 | |||
9 | SRCREV = "b2e647ffb8f42aa22ce4b0194d6ef6d16d5002b0" | ||
10 | |||
11 | |||
12 | inherit cmake | ||
13 | |||
14 | DEPENDS += "opencl-clhpp virtual/opencl-icd" | ||
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 new file mode 100644 index 0000000000..1654bf48c6 --- /dev/null +++ b/meta-oe/recipes-core/opencl/files/0001-Command-buffer-supported-queue-properties-265.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 85888592e178c7923cd1bc1d69cee530906c80a4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ewan Crawford <ewan@codeplay.com> | ||
3 | Date: Tue, 14 Jan 2025 17:14:29 +0000 | ||
4 | Subject: [PATCH] Command-buffer supported queue properties (#265) | ||
5 | |||
6 | Header update generated from OpenCL-Docs PR XML change | ||
7 | https://github.com/KhronosGroup/OpenCL-Docs/pull/850 | ||
8 | |||
9 | Upstream-Status: Backport [https://github.com/KhronosGroup/OpenCL-Headers/commit/d32c5bb219d7ba90ad4f251cf0bb903c08f8e5db] | ||
10 | Signed-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 | |||
15 | diff --git a/CL/cl_ext.h b/CL/cl_ext.h | ||
16 | index 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 new file mode 100644 index 0000000000..2e8b52d794 --- /dev/null +++ b/meta-oe/recipes-core/opencl/files/0001-Ignore-Compiler-Warnings.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 082ce10dd191f036f5a6e1fb31134e9736ba3643 Mon Sep 17 00:00:00 2001 | ||
2 | From: Antonios Christidis <a-christidis@ti.com> | ||
3 | Date: Fri, 17 Jan 2025 15:05:39 -0600 | ||
4 | Subject: [PATCH] Create CMake option ENABLE_WERROR | ||
5 | |||
6 | This creates an option that can be toggled on or off when configuring the project. | ||
7 | By default, it's set to ON | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Antonios Christidis <a-christidis@ti.com> | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | |||
13 | --- | ||
14 | CMakeLists.txt | 4 +++- | ||
15 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
16 | |||
17 | --- a/CMakeLists.txt | ||
18 | +++ b/CMakeLists.txt | ||
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) | ||
22 | |||
23 | +option(ENABLE_WERROR "Enable warnings as errors" ON) | ||
24 | + | ||
25 | +if(ENABLE_WERROR) | ||
26 | + if(MSVC) | ||
27 | + add_compile_options(/WX) | ||
28 | + else() | ||
29 | + add_compile_options(-Werror) | ||
30 | + endif() | ||
31 | +endif() | ||
32 | + | ||
33 | option(USE_CL_EXPERIMENTAL "Use Experimental definitions" OFF) | ||
34 | if(USE_CL_EXPERIMENTAL) | ||
35 | add_definitions(-DCL_EXPERIMENTAL) | ||
36 | @@ -99,7 +109,6 @@ if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C | ||
37 | add_cxx_flag_if_supported(-Wmisleading-indentation) | ||
38 | add_cxx_flag_if_supported(-Wunused-function) | ||
39 | add_cxx_flag_if_supported(-Wunused-variable) | ||
40 | - add_cxx_flag_if_supported(-Werror) | ||
41 | if(NOT CMAKE_BUILD_TYPE MATCHES "Release|RelWithDebInfo|MinSizeRel") | ||
42 | # Enable more warnings if not doing a release build. | ||
43 | add_cxx_flag_if_supported(-Wall) | ||
diff --git a/meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb b/meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb index d43ea281ae..9e32242e31 100644 --- a/meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb +++ b/meta-oe/recipes-core/opencl/ocl-icd_2.3.2.bb | |||
@@ -9,7 +9,6 @@ SRC_URI = "git://github.com/OCL-dev/ocl-icd.git;protocol=https;branch=master" | |||
9 | 9 | ||
10 | SRCREV = "fdde6677b21329432db8b481e2637cd10f7d3cb2" | 10 | SRCREV = "fdde6677b21329432db8b481e2637cd10f7d3cb2" |
11 | 11 | ||
12 | S = "${WORKDIR}/git" | ||
13 | 12 | ||
14 | inherit autotools | 13 | inherit autotools |
15 | 14 | ||
diff --git a/meta-oe/recipes-core/opencl/opencl-clhpp_git.bb b/meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb index 7ae0362d37..7335712d6f 100644 --- a/meta-oe/recipes-core/opencl/opencl-clhpp_git.bb +++ b/meta-oe/recipes-core/opencl/opencl-clhpp_2024.10.24.bb | |||
@@ -1,23 +1,25 @@ | |||
1 | SUMMARY = "OpenCL API C++ bindings" | 1 | SUMMARY = "OpenCL API C++ bindings" |
2 | DESCRIPTION = "OpenCL API C++ bindings from Khronos" | 2 | DESCRIPTION = "OpenCL API C++ bindings from Khronos" |
3 | 3 | ||
4 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main" | ||
5 | |||
6 | LICENSE = "Apache-2.0" | 4 | LICENSE = "Apache-2.0" |
7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" |
8 | 6 | ||
9 | PV = "2.0.16+git" | 7 | DEPENDS = "opencl-headers" |
10 | SRCREV = "1df82b9749739f2681081092ae163bb0f0d40f66" | 8 | |
9 | SRCREV = "c7b4aded1cab9560b226041dd962f63375a9a384" | ||
10 | |||
11 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main" | ||
11 | 12 | ||
12 | S = "${WORKDIR}/git" | ||
13 | 13 | ||
14 | inherit cmake | 14 | inherit cmake |
15 | 15 | ||
16 | EXTRA_OECMAKE = " \ | 16 | EXTRA_OECMAKE = " \ |
17 | -DBUILD_DOCS=OFF \ | 17 | -DBUILD_DOCS=OFF \ |
18 | -DBUILD_EXAMPLES=OFF \ | 18 | -DBUILD_EXAMPLES=OFF \ |
19 | -DBUILD_TESTS=OFF \ | 19 | -DBUILD_TESTING=OFF \ |
20 | " | 20 | " |
21 | 21 | ||
22 | # Headers only so PN is empty | 22 | # Headers only so PN is empty |
23 | RDEPENDS:${PN}-dev = "" | 23 | RDEPENDS:${PN}-dev = "" |
24 | |||
25 | BBCLASSEXTEND += "native nativesdk" | ||
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 new file mode 100644 index 0000000000..c766a66640 --- /dev/null +++ b/meta-oe/recipes-core/opencl/opencl-cts_2025.01.22.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "OpenCL CTS" | ||
2 | DESCRIPTION = "OpenCL CTS test suite" | ||
3 | LICENSE = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
5 | |||
6 | inherit pkgconfig cmake | ||
7 | |||
8 | DEPENDS += "opencl-headers opencl-icd-loader" | ||
9 | RDEPENDS:${PN} += "python3-core python3-io" | ||
10 | |||
11 | |||
12 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-CTS.git;protocol=https;branch=main;lfs=0 \ | ||
13 | file://0001-Ignore-Compiler-Warnings.patch" | ||
14 | |||
15 | SRCREV = "5b3518096ca7b82854daadb2b2fae704fe2d9cb5" | ||
16 | |||
17 | EXTRA_OECMAKE:append = " -DENABLE_WERROR=OFF -DCL_INCLUDE_DIR=${STAGING_INCDIR} -DCL_LIB_DIR=${STAGING_LIBDIR} -DOPENCL_LIBRARIES=OpenCL" | ||
18 | |||
19 | SECURITY_STRINGFORMAT:remove = "-Werror=format-security" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}${bindir}/opencl_test_conformance | ||
23 | cp -r ${B}/test_conformance/* ${D}${bindir}/opencl_test_conformance | ||
24 | sed -i 's:/usr/bin/python:/usr/bin/python3:g' ${D}${bindir}/opencl_test_conformance/run_conformance.py | ||
25 | find "${D}${bindir}/opencl_test_conformance" -name cmake_install.cmake -type f -delete | ||
26 | find "${D}${bindir}/opencl_test_conformance" -name CMakeFiles -type d -exec rm -rf "{}" \; -depth | ||
27 | } | ||
28 | |||
29 | COMPATIBLE_HOST:riscv64 = "null" | ||
30 | COMPATIBLE_HOST:riscv32 = "null" | ||
diff --git a/meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb b/meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb index 01e83c812c..0ec2fe5f33 100644 --- a/meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb +++ b/meta-oe/recipes-core/opencl/opencl-headers_2024.10.24.bb | |||
@@ -4,16 +4,15 @@ LICENSE = "Apache-2.0" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
5 | SECTION = "base" | 5 | SECTION = "base" |
6 | 6 | ||
7 | S = "${WORKDIR}/git" | 7 | SRCREV = "4ea6df132107e3b4b9407f903204b5522fdffcd6" |
8 | SRCREV = "8275634cf9ec31b6484c2e6be756237cb583999d" | 8 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https \ |
9 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https" | 9 | file://0001-Command-buffer-supported-queue-properties-265.patch \ |
10 | " | ||
11 | |||
12 | inherit cmake | ||
13 | |||
14 | EXTRA_OECMAKE = "-DBUILD_TESTING=OFF" | ||
10 | 15 | ||
11 | do_configure[noexec] = "1" | ||
12 | do_compile[noexec] = "1" | ||
13 | ALLOW_EMPTY:${PN} = "1" | 16 | ALLOW_EMPTY:${PN} = "1" |
14 | 17 | ||
15 | do_install () { | ||
16 | install -d ${D}${includedir}/CL/ | ||
17 | install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL | ||
18 | } | ||
19 | BBCLASSEXTEND = "native nativesdk" | 18 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta-oe/recipes-core/opencl/opencl-icd-loader_2024.05.08.bb b/meta-oe/recipes-core/opencl/opencl-icd-loader_2024.05.08.bb index 38db7a2453..7cfc75f5ed 100644 --- a/meta-oe/recipes-core/opencl/opencl-icd-loader_2024.05.08.bb +++ b/meta-oe/recipes-core/opencl/opencl-icd-loader_2024.05.08.bb | |||
@@ -11,7 +11,6 @@ DEPENDS += "opencl-headers" | |||
11 | PROVIDES = "virtual/opencl-icd" | 11 | PROVIDES = "virtual/opencl-icd" |
12 | RPROVIDES:${PN} = "virtual-opencl-icd" | 12 | RPROVIDES:${PN} = "virtual-opencl-icd" |
13 | 13 | ||
14 | S = "${WORKDIR}/git" | ||
15 | 14 | ||
16 | SRCREV = "861b68b290e76d08e7241608479c16431f529945" | 15 | SRCREV = "861b68b290e76d08e7241608479c16431f529945" |
17 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-ICD-Loader.git;branch=main;protocol=https" | 16 | SRC_URI = "git://github.com/KhronosGroup/OpenCL-ICD-Loader.git;branch=main;protocol=https" |