summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}