[OE-core] [meta-oe] [master] [PATCH 1/3] benchmarks:Added recipe for whetstone benchmarks

Khem Raj raj.khem at gmail.com
Wed Aug 24 00:54:17 UTC 2016


> On Aug 23, 2016, at 2:47 AM, Mubin Sayyed <mubin.usman.sayyed at xilinx.com> wrote:
> 
> This patch adds recipe for whestone benchmarks.
> Whestone benchmarks measures CPU's floating-point
> arithmetic performance
> 
> Signed-off-by: Mubin Sayyed <mubinusm at xilinx.com>
> ---
> .../recipes-benchmark/whetstone/whetstone_1.0.bb   | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100644 meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
> 
> diff --git a/meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb b/meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
> new file mode 100644
> index 0000000..e6f51cb
> --- /dev/null
> +++ b/meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
> @@ -0,0 +1,22 @@
> +DESCRIPTION = "CPU benchmark to measure floating point performance"
> +HOMEPAGE = "https://en.wikipedia.org/wiki/Whetstone_(benchmark)"
> +SECTION = "benchmark/tests"
> +
> +LICENSE = "GPLv1"
> +LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
> +
> +SRC_URI = "http://www.netlib.org/benchmark/whetstone.c"
> +SRC_URI[md5sum] = "d8eb2cd7104bb5a12d614ac6d3f1f9fb"
> +SRC_URI[sha256sum] = "333e4ceca042c146f63eec605573d16ae8b07166cbc44a17bec1ea97c6f1efbf"
> +
> +S = "${WORKDIR}"
> +
> +do_compile () {
> +	${CC} -O3 -Ofast -o whetstone whetstone.c -lm

hardcoding, compiler options may not be the right thing
just leveraging CFLAGS is right thing.

Secondly, also pass LDFLAGS since compile and link are
happening in same step

> +}
> +
> +do_install () {
> +	install -d ${D}${bindir}
> +	install -m 0755 whetstone ${D}${bindir}
> +}
> +
> --
> 1.9.1
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160823/7352b556/attachment-0002.sig>


More information about the Openembedded-core mailing list