[Buildroot] [PATCH] package/clpeak: new package
From: Gilles Talis <hidden>
Date: 2021-10-24 11:37:16
Subsystem:
the rest · Maintainer:
Linus Torvalds
clpeak is a tool that profiles OpenCL devices to find their peak capacities Signed-off-by: Gilles Talis <redacted> --- DEVELOPERS | 1 + package/Config.in | 1 + package/clpeak/Config.in | 14 ++++++++++++++ package/clpeak/clpeak.hash | 3 +++ package/clpeak/clpeak.mk | 13 +++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 package/clpeak/Config.in create mode 100644 package/clpeak/clpeak.hash create mode 100644 package/clpeak/clpeak.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index f864f7ef47..41cef4a442 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS@@ -1034,6 +1034,7 @@ N: Gilles Talis <gilles.talis@gmail.com> F: board/freescale/imx8mmevk/ F: configs/freescale_imx8mmevk_defconfig F: package/cctz/ +F: package/clpeak/ F: package/faad2/ F: package/fdk-aac/ F: package/httping/
diff --git a/package/Config.in b/package/Config.in
index d40eb9dabc..0a7c0deea8 100644
--- a/package/Config.in
+++ b/package/Config.in@@ -87,6 +87,7 @@ menu "Debugging, profiling and benchmark" source "package/bonnie/Config.in" source "package/cache-calibrator/Config.in" source "package/clinfo/Config.in" + source "package/clpeak/Config.in" source "package/coremark/Config.in" source "package/coremark-pro/Config.in" source "package/dacapo/Config.in"
diff --git a/package/clpeak/Config.in b/package/clpeak/Config.in
new file mode 100644
index 0000000000..6b0aeb220c
--- /dev/null
+++ b/package/clpeak/Config.in@@ -0,0 +1,14 @@ +config BR2_PACKAGE_CLPEAK + bool "clpeak" + depends on BR2_PACKAGE_HAS_LIBOPENCL + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + help + clpeak is a tool that profiles OpenCL devices + to find their peak capacities + + https://github.com/krrishnarraj/clpeak + +comment "clpeak needs an OpenCL provider, a toolchain w/ C++, gcc >= 4.8" + depends on !BR2_PACKAGE_HAS_LIBOPENCL \ + || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
diff --git a/package/clpeak/clpeak.hash b/package/clpeak/clpeak.hash
new file mode 100644
index 0000000000..e0d2c1e92b
--- /dev/null
+++ b/package/clpeak/clpeak.hash@@ -0,0 +1,3 @@ +# Locally computed +sha256 1e9c3f959498253d6bb956dc786de7b3e4019264216a1781c06ae49a1d6600e5 clpeak-0777205be1d5681d5a76d46ec94588544e8462a5.tar.gz +sha256 88d9b4eb60579c191ec391ca04c16130572d7eedc4a86daa58bf28c6e14c9bcd LICENSE
diff --git a/package/clpeak/clpeak.mk b/package/clpeak/clpeak.mk
new file mode 100644
index 0000000000..e36170d8aa
--- /dev/null
+++ b/package/clpeak/clpeak.mk@@ -0,0 +1,13 @@ +################################################################################ +# +# clpeak +# +################################################################################ + +CLPEAK_VERSION = 0777205be1d5681d5a76d46ec94588544e8462a5 +CLPEAK_SITE = $(call github,krrishnarraj,clpeak,$(CLPEAK_VERSION)) +CLPEAK_LICENSE = Unlicense +CLPEAK_LICENSE_FILES = LICENSE +CLPEAK_DEPENDENCIES = libopencl + +$(eval $(cmake-package))
--
2.27.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot