git: 5d8c4cc0f449 - main - benchmarks/scimark4c: repocopy from benchmarks/scimark2c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 May 2022 20:29:40 UTC
The branch main has been updated by thierry:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5d8c4cc0f449718a678edd1cdca20ed24b612898
commit 5d8c4cc0f449718a678edd1cdca20ed24b612898
Author: Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-05-31 17:08:27 +0000
Commit: Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-05-31 20:27:41 +0000
benchmarks/scimark4c: repocopy from benchmarks/scimark2c
Release notes at <https://math.nist.gov/scimark2/whatsnew.html>.
---
benchmarks/Makefile | 1 +
benchmarks/scimark4c/Makefile | 22 +++++++++++++++++++
benchmarks/scimark4c/distinfo | 3 +++
benchmarks/scimark4c/files/patch-Makefile | 33 +++++++++++++++++++++++++++++
benchmarks/scimark4c/files/patch-scimark4.c | 11 ++++++++++
benchmarks/scimark4c/pkg-descr | 10 +++++++++
benchmarks/scimark4c/pkg-message | 12 +++++++++++
7 files changed, 92 insertions(+)
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 1c2dc63ad114..8adc930b9aec 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -87,6 +87,7 @@
SUBDIR += rubygem-railsbench
SUBDIR += scimark2
SUBDIR += scimark2c
+ SUBDIR += scimark4c
SUBDIR += shellbench
SUBDIR += siege
SUBDIR += sipp
diff --git a/benchmarks/scimark4c/Makefile b/benchmarks/scimark4c/Makefile
new file mode 100644
index 000000000000..56278b060372
--- /dev/null
+++ b/benchmarks/scimark4c/Makefile
@@ -0,0 +1,22 @@
+# Created by: thierry@pompo.net
+
+PORTNAME= scimark4c
+PORTVERSION= 4
+CATEGORIES= benchmarks
+MASTER_SITES= http://math.nist.gov/scimark2/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= ANSI C version of the SciMark2 benchmark
+
+LICENSE= PD
+
+USES= zip
+
+WRKSRC= ${WRKDIR}/${PORTNAME:C/4c/4/}
+PLIST_FILES= bin/scimark4
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/scimark4 ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/benchmarks/scimark4c/distinfo b/benchmarks/scimark4c/distinfo
new file mode 100644
index 000000000000..58d5ee3888dc
--- /dev/null
+++ b/benchmarks/scimark4c/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1654017050
+SHA256 (scimark4c.zip) = 91c839bca629d01efe6c2fc298530efed330c5ff6aea7bee16fd2f452cb731b1
+SIZE (scimark4c.zip) = 17348
diff --git a/benchmarks/scimark4c/files/patch-Makefile b/benchmarks/scimark4c/files/patch-Makefile
new file mode 100644
index 000000000000..600224ab9225
--- /dev/null
+++ b/benchmarks/scimark4c/files/patch-Makefile
@@ -0,0 +1,33 @@
+--- Makefile.orig 2018-06-22 16:46:28 UTC
++++ Makefile
+@@ -6,19 +6,19 @@
+ all: scimark4
+
+
+-CC = icc
+-CFLAGS = -O3 -fno-alias -parallel -par-num-threads=4
++#CC = icc
++#CFLAGS = -O3 -fno-alias -parallel -par-num-threads=4
+
+
+-CC = gcc
+-CC = cc
+-LDFLAGS =
+-CFLAGS = -O3 -funroll-all-loops -mtune=prescott
+-CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto
+-CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto
+-CFLAGS = -O3 -funroll-loops -Wall -pedantic -flto
+-CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -ansi
+-CFLAGS = -O3 -funroll-loops -Wall -pedantic -ansi
++#CC = gcc
++#CC = cc
++#LDFLAGS =
++#CFLAGS = -O3 -funroll-all-loops -mtune=prescott
++#CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto
++#CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto
++#CFLAGS = -O3 -funroll-loops -Wall -pedantic -flto
++#CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -ansi
++#CFLAGS = -O3 -funroll-loops -Wall -pedantic -ansi
+
+ OBJS = FFT.o kernel.o Stopwatch.o Random.o SOR.o SparseCompRow.o \
+ array.o MonteCarlo.o LU.o scimark4.o
diff --git a/benchmarks/scimark4c/files/patch-scimark4.c b/benchmarks/scimark4c/files/patch-scimark4.c
new file mode 100644
index 000000000000..5b78988b55f9
--- /dev/null
+++ b/benchmarks/scimark4c/files/patch-scimark4.c
@@ -0,0 +1,11 @@
+--- scimark4.c.orig 2018-07-29 20:02:32 UTC
++++ scimark4.c
+@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
+
+
+ print_banner();
+- printf("Using %10.2f seconds min time per kenel.", min_time);
++ printf("Using %10.2f seconds min time per kernel.", min_time);
+ if (huge_flag)
+ {
+ printf(" Approx. problem size: %d (MB)", atoi(argv[2]));
diff --git a/benchmarks/scimark4c/pkg-descr b/benchmarks/scimark4c/pkg-descr
new file mode 100644
index 000000000000..37712f8a9742
--- /dev/null
+++ b/benchmarks/scimark4c/pkg-descr
@@ -0,0 +1,10 @@
+This is an ANSI C version of the SciMark2 benchmark, translated from the
+original Java sources. The intent in making this benchmark available in
+C is mainly for performance comparisons.
+
+Version 4.0 of the software has added check-sum counters to adequately test
+newer optimizing compilers.
+
+Results of this benchmark can be sent to pozo@nist.gov.
+
+WWW: https://math.nist.gov/scimark2/download_c.html
diff --git a/benchmarks/scimark4c/pkg-message b/benchmarks/scimark4c/pkg-message
new file mode 100644
index 000000000000..f4e9d8779df2
--- /dev/null
+++ b/benchmarks/scimark4c/pkg-message
@@ -0,0 +1,12 @@
+[
+{ type: install
+ message: <<EOM
+ Just run scimark4 or scimark4 -large
+
+ The first SciMark number reported is the composite score, followed by the an
+ approximate Mflop rate for each kernel.
+
+ You may try to hack CC or CFLAGS in /etc/make.conf...
+EOM
+}
+]