Skip to contentSkip to conversation

Added cpu benchmarks

PATCH In review Mubin Sayyed 2 participants 6 messages Aug 23, 2016 – Sep 1, 2016

lore
Share & tools
lore
#0 lore raw

cover Added cpu benchmarks

Added recipes for cpu benchmarks dhrystone,whetstone and linpack.

Mubin Sayyed (3):
benchmarks:Added recipe for whetstone benchmarks benchmarks:Added recipe for dhrystone benchmarks:Added recipe for linpack

 .../recipes-benchmark/dhrystone/dhrystone_2.1.bb   | 22 ++++++++++++++++++++++
 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb   | 22 ++++++++++++++++++++++
 .../recipes-benchmark/whetstone/whetstone_1.0.bb   | 22 ++++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb
 create mode 100644 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
 create mode 100644 meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/3 benchmarks:Added recipe for whetstone benchmarks

This patch adds recipe for whestone benchmarks.
Whestone benchmarks measures CPU's floating-point
arithmetic performance

---
 .../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
meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb new file +22 -0
new file mode 100644
index 0000000..e6f51cb
@@ -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 
+}
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0755 whetstone ${D}${bindir}	
+}
+
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/3 benchmarks:Added recipe for dhrystone

In reply to Mubin Sayyed

This patch adds recipe for dhrystone benchmarks.
Dhrystone benchmarks measure CPU performance.

---
 .../recipes-benchmark/dhrystone/dhrystone_2.1.bb   | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb
meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb new file +22 -0
new file mode 100644
index 0000000..d0026d5
@@ -0,0 +1,22 @@
+DESCRIPTION = "CPU Benchmark to measure integer performance"
+SECTION = "benchmark/tests"
+HOMEPAGE = "http://en.wikipedia.org/wiki/Dhrystone"
+
+LICENSE = "NCSA"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/NCSA;md5=1b5fdec70ee13ad8a91667f16c1959d7"
+
+SRC_URI = "http://fossies.org/linux/privat/old/dhrystone-${PV}.tar.gz"
+	 
+SRC_URI[md5sum] = "15e13d1d2329571a60c04b2f05920d24"
+SRC_URI[sha256sum] = "8c8da46c34fde271b8f60a96a432164d2918706911199f43514861f07ef6b2f1"
+
+EXTRA_OEMAKE = "-e MAKEFLAGS='GCC=${CC}' 'PROGS=unix' 'TIME_FUNC= -DTIME' \
+                'HZ=60' 'OPTIMIZE= -O4' 'GCCOPTIM=-O'"
+S = "${WORKDIR}"
+
+do_install () {
+
+	install -d ${D}${bindir}
+	install -m 0755 gcc_dry2  ${D}${bindir}
+	install -m 0755 gcc_dry2reg  ${D}${bindir}
+}
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/3 benchmarks:Added recipe for linpack

In reply to Mubin Sayyed

This patch adds recipe for linpack benchmarks.
linpack benchmarks measures the CPU's floating point computing power.

---
 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
meta-oe/recipes-benchmark/linpack/linpack_1.0.bb new file +22 -0
new file mode 100644
index 0000000..b136358
@@ -0,0 +1,22 @@
+DESCRIPTION = "LINPACK Benchmarks are a measure of a system's floating point computing power"
+HOMEPAGE = "https://en.wikipedia.org/wiki/LINPACK_benchmarks"
+SECTION = "benchmark/tests"
+
+LICENSE = "BSD"
+LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb"
+
+SRC_URI = "http://ftp4.se.freebsd.org/pub/misc/linpacknew.c"
+SRC_URI[md5sum] = "11aec219fc065a4aa54b9aed3b2c6f47"
+SRC_URI[sha256sum] = "e21ab7b04732189b550070f346970db9686d2f33a5d0a1a3a03c4dc50f7af14c"
+
+S = "${WORKDIR}"
+
+do_compile () {
+	${CC} -O -o linpack linpacknew.c -lm
+}
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0755 linpack ${D}${bindir}
+}
+
Signature · 1 line
1.9.1
#4 lore raw
In reply to Mubin Sayyed
Quoted 1 line · Mubin Sayyed

Added recipes for cpu benchmarks dhrystone,whetstone and linpack.

Please use 4 spaces for indentation instead of tabs.

Quoted 22 lines

Mubin Sayyed (3):
benchmarks:Added recipe for whetstone benchmarks benchmarks:Added recipe for dhrystone benchmarks:Added recipe for linpack

 .../recipes-benchmark/dhrystone/dhrystone_2.1.bb   | 22 ++++++++++++++++++++++
 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb   | 22 ++++++++++++++++++++++
 .../recipes-benchmark/whetstone/whetstone_1.0.bb   | 22 ++++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb
 create mode 100644 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
 create mode 100644 meta-oe/recipes-benchmark/whetstone/whetstone_1.0.bb
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw

Hi,

Quoted 8 lines

-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Wednesday, August 31, 2016 10:21 PM
To: [email protected]
Cc: Manjukumar Harthikote Matha <[email protected]>; Mubin Usman Sayyed <[email protected]>
Subject: Re: [oe] [meta-oe] [PATCH 0/3] Added cpu benchmarks

Quoted 5 lines
Quoted 1 line · Mubin Sayyed

Added recipes for cpu benchmarks dhrystone,whetstone and linpack.

Please use 4 spaces for indentation instead of tabs.

I have fixed this in v2.

Thanks,
Mubin

Quoted 22 lines
Quoted 7 lines

Mubin Sayyed (3):
benchmarks:Added recipe for whetstone benchmarks benchmarks:Added recipe for dhrystone benchmarks:Added recipe for linpack

 .../recipes-benchmark/dhrystone/dhrystone_2.1.bb   | 22

++++++++++++++++++++++

Quoted 1 line
 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb   | 22

++++++++++++++++++++++

Quoted 1 line
 .../recipes-benchmark/whetstone/whetstone_1.0.bb   | 22

++++++++++++++++++++++

Quoted 2 lines
 3 files changed, 66 insertions(+)
 create mode 100644 meta-oe/recipes-

benchmark/dhrystone/dhrystone_2.1.bb

Quoted 2 lines
 create mode 100644 meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
 create mode 100644 meta-oe/recipes-

benchmark/whetstone/whetstone_1.0.bb

Quoted 4 lines

--
1.9.1

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.