diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-10-06 14:08:07 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-10-06 11:34:42 -0700 |
commit | 3f95c76d053dda852d35b0faae0e4a80bb275320 (patch) | |
tree | 280ff6bbe44730363cae377d879b04904fb57a6a | |
parent | a56309b5b24870fee3667d031203b3f9663e755f (diff) | |
download | meta-openembedded-3f95c76d053dda852d35b0faae0e4a80bb275320.tar.gz |
opencl-benchmark: package NVIDIA OpenCL benchmark
Add recipe to build a small OpenCL benchmark program to measure peak
GPU/CPU performance.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-core/opencl-benchmark/opencl-benchmark_1.9.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/opencl-benchmark/opencl-benchmark_1.9.bb b/meta-oe/recipes-core/opencl-benchmark/opencl-benchmark_1.9.bb new file mode 100644 index 0000000000..e0a9f33241 --- /dev/null +++ b/meta-oe/recipes-core/opencl-benchmark/opencl-benchmark_1.9.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "a small OpenCL benchmark program to measure peak GPU/CPU performance" | ||
2 | DESCRIPTION = "A small program, allowing to benchmark OpenCL performans using GPU or CPU drivers." | ||
3 | HOMEPAGE = "https://github.com/ProjectPhysX/OpenCL-Benchmark" | ||
4 | |||
5 | SRC_URI = "git://github.com/ProjectPhysX/OpenCL-Benchmark;protocol=https;branch=master;tag=v${PV}" | ||
6 | SRCREV = "3b669592e21e1deaa025b83953d85e41545dd949" | ||
7 | |||
8 | LICENSE = "BSD-3-Clause" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=f7884ffa0d4385c62b5d649de8c4c8da" | ||
10 | |||
11 | inherit features_check | ||
12 | |||
13 | REQUIRED_DISTRO_FEATURES = "opencl" | ||
14 | |||
15 | DEPENDS = "opencl-clhpp virtual/libopencl1" | ||
16 | |||
17 | # There is no Makefile, duplicate what make.sh is doing, while also enabling OE | ||
18 | # build flags and building and linking against normal CL headers / lib | ||
19 | do_compile() { | ||
20 | ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -std=c++17 -pthread \ | ||
21 | ${S}/src/*.cpp -o ${B}/OpenCL-Benchmark -lOpenCL | ||
22 | } | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${bindir} | ||
26 | install -m 0755 ${B}/OpenCL-Benchmark ${D}${bindir} | ||
27 | } | ||