summaryrefslogtreecommitdiff
path: root/benchmarks/scimark4c
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2022-05-31 19:08:27 +0200
committerThierry Thomas <thierry@FreeBSD.org>2022-05-31 22:27:41 +0200
commit5d8c4cc0f449718a678edd1cdca20ed24b612898 (patch)
tree7ca1659716c7c93939446c4ae224db8f2f9f248f /benchmarks/scimark4c
parentscience/quantum-jet: New port: Cross-platform header-only library for simulat... (diff)
benchmarks/scimark4c: repocopy from benchmarks/scimark2c
Release notes at <https://math.nist.gov/scimark2/whatsnew.html>.
Diffstat (limited to 'benchmarks/scimark4c')
-rw-r--r--benchmarks/scimark4c/Makefile22
-rw-r--r--benchmarks/scimark4c/distinfo3
-rw-r--r--benchmarks/scimark4c/files/patch-Makefile33
-rw-r--r--benchmarks/scimark4c/files/patch-scimark4.c11
-rw-r--r--benchmarks/scimark4c/pkg-descr10
-rw-r--r--benchmarks/scimark4c/pkg-message12
6 files changed, 91 insertions, 0 deletions
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
+}
+]