summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-10-06 14:08:07 +0300
committerKhem Raj <raj.khem@gmail.com>2025-10-06 11:34:42 -0700
commit3f95c76d053dda852d35b0faae0e4a80bb275320 (patch)
tree280ff6bbe44730363cae377d879b04904fb57a6a
parenta56309b5b24870fee3667d031203b3f9663e755f (diff)
downloadmeta-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.bb27
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 @@
1SUMMARY = "a small OpenCL benchmark program to measure peak GPU/CPU performance"
2DESCRIPTION = "A small program, allowing to benchmark OpenCL performans using GPU or CPU drivers."
3HOMEPAGE = "https://github.com/ProjectPhysX/OpenCL-Benchmark"
4
5SRC_URI = "git://github.com/ProjectPhysX/OpenCL-Benchmark;protocol=https;branch=master;tag=v${PV}"
6SRCREV = "3b669592e21e1deaa025b83953d85e41545dd949"
7
8LICENSE = "BSD-3-Clause"
9LIC_FILES_CHKSUM = "file://LICENSE.md;md5=f7884ffa0d4385c62b5d649de8c4c8da"
10
11inherit features_check
12
13REQUIRED_DISTRO_FEATURES = "opencl"
14
15DEPENDS = "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
19do_compile() {
20 ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -std=c++17 -pthread \
21 ${S}/src/*.cpp -o ${B}/OpenCL-Benchmark -lOpenCL
22}
23
24do_install() {
25 install -d ${D}${bindir}
26 install -m 0755 ${B}/OpenCL-Benchmark ${D}${bindir}
27}