diff options
-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 | } | ||