From d6572b0755217508ec682bde31ecef9e8f332626 Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 28 Sep 2005 18:59:41 +0000 Subject: Fixed pkglint warnings. Converted patch-ab to unified diff format. Moved hint.1 from inside patch-aa to the files/ directory. --- benchmarks/hint/Makefile | 5 +- benchmarks/hint/distinfo | 5 +- benchmarks/hint/files/hint.1 | 115 +++++++++++++++++++++++++++++++++++++++ benchmarks/hint/patches/patch-ab | 32 ++++------- 4 files changed, 133 insertions(+), 24 deletions(-) create mode 100644 benchmarks/hint/files/hint.1 (limited to 'benchmarks') diff --git a/benchmarks/hint/Makefile b/benchmarks/hint/Makefile index 23950dfb6b8..c91d3fde25f 100644 --- a/benchmarks/hint/Makefile +++ b/benchmarks/hint/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2005/03/24 21:12:51 wiz Exp $ +# $NetBSD: Makefile,v 1.20 2005/09/28 18:59:41 rillig Exp $ DISTNAME= hint_unix_serial PKGNAME= hint.serial-98.06.12 @@ -18,6 +18,9 @@ WRKSRC= ${WRKDIR}/unix INSTALLATION_DIRS= bin man/man1 +post-extract: + ${CP} ${FILESDIR}/hint.1 ${WRKSRC}/hint.1 + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/DOUBLE ${PREFIX}/bin/hint-double ${INSTALL_PROGRAM} ${WRKSRC}/INT ${PREFIX}/bin/hint-int diff --git a/benchmarks/hint/distinfo b/benchmarks/hint/distinfo index 27139d5b096..4d94e159339 100644 --- a/benchmarks/hint/distinfo +++ b/benchmarks/hint/distinfo @@ -1,8 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/02/22 21:16:36 agc Exp $ +$NetBSD: distinfo,v 1.5 2005/09/28 18:59:41 rillig Exp $ SHA1 (hint_unix_serial.tar) = b590c036638050c116b12d09a80ed910f68af271 RMD160 (hint_unix_serial.tar) = ca58d34cc3ab2c7effeec19106f1c01153f4a593 Size (hint_unix_serial.tar) = 71680 bytes -SHA1 (patch-aa) = ed3d3e4cc76df2e092627b4b4d6ff68419a94b07 -SHA1 (patch-ab) = 64be507d80018a95bbb615d1db83b3331633efa3 +SHA1 (patch-ab) = 7ac0dd017bbc25c6573b8d60f08f85785baed8f5 SHA1 (patch-ac) = aca05bc3024cd42dbb8b6dc9006c771948b04838 diff --git a/benchmarks/hint/files/hint.1 b/benchmarks/hint/files/hint.1 new file mode 100644 index 00000000000..4a6e545f62e --- /dev/null +++ b/benchmarks/hint/files/hint.1 @@ -0,0 +1,115 @@ +.\" Copyright 1998 Iowa State University Research Foundation, Inc. +.\" +.\" This program is free software; you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation. You should have received a copy of the +.\" GNU General Public License along with this program; if not, write to the +.\" Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE IOWA STATE UNIVERSITY RESEARCH +.\" FOUNDATION ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE IOWA STATE UNIVERSITY RESEARCH FOUNDATION BE +.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, +.\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" Id +.\" +.Dd May 18, 1998 +.Dt HINT 1 +.Os +.Sh NAME +.Nm hint +.Nd scalable benchmark for CPU and memory +.Sh SYNOPSIS +.Nm hint +.Sh DESCRIPTION +The program +.Nm +reveals many aspects of computer performance: operation speed, +precision, memory bandwidth, and usable memory size. HINT measures +"QUIPS" (QUality Improvement Per Second) as a function of time. "Net +QUIPS" is a single number that summarizes the QUIPS over time. +.Pp +As provided, +.Nm +tests double-precision floating point arithmetic. The original source +can be re-compiled to test other data types (such as long integers). +The original source should be available directly from +.Pa ftp://ftp.scl.ameslab.gov/pub/HINT/ . +See +.Pa http://www.scl.ameslab.gov/Projects/HINT/ +for more information on HINT, including technical reports and an +on-line database of HINT results. +.Pp +The output of +.Nm +is a file in the directory +.Pa data +named +.Pa DOUBLE +which contains five columns: +.Bl -enum +.It +Time +.It +QUIPS +.It +Quality +.It +Subintervals +.It +Memory Used +.El +.Pp +The first two columns are used to produce the QUIPS graph. The third +and fourth columns are Quality and subintervals. These columns can be +used to check for loss of quality due to insufficient precision and +poor choices of which rectangle to split. The fifth is useful for +finding the sizes of memory regimes, like where primary cache +saturates or where virtual memory is first invoked. +.Pp +The file is set up in a format suitable for +.Xr gnuplot 1 +or similar plotting packages. QUIPS graphs should be plotted on a +semi-log scale with log of time as the horizontal axis and QUIPS as +the vertical axis. The following gnuplot commands would be suitable to +display the QUIPS graph from the file +.Pa data/DOUBLE : +.nf + +set logscale x +plot "data/DOUBLE" + +.fi +QUIPS vs. memory use can also be plotted to reveal memory regime sizes, +by using the following +.Xr gnuplot 1 +command: +.nf + +plot "data/DOUBLE" using 5:2 + +.fi + +.Sh FILES +.Bl -tag -width DOUBLE -compact +.It Pa DOUBLE output file in the directory +.Pa data +.El +.Sh SEE ALSO +.Xr gnuplot 1 +.Sh AUTHOR +.Nm HINT +was developed by the Scalable Computing Laboratory (SCL) of Ames Laboratory, +a US Department of Energy laboratory. +.Sh BUGS +.Nm +only writes its output file in the directory +.Pa data . diff --git a/benchmarks/hint/patches/patch-ab b/benchmarks/hint/patches/patch-ab index 2a149348a53..3e431a9d67d 100644 --- a/benchmarks/hint/patches/patch-ab +++ b/benchmarks/hint/patches/patch-ab @@ -1,21 +1,13 @@ -$NetBSD: patch-ab,v 1.2 1999/02/10 14:59:50 frueauf Exp $ +$NetBSD: patch-ab,v 1.3 2005/09/28 18:59:41 rillig Exp $ -*** hint.c.ORIG Sun May 31 15:34:52 1998 ---- hint.c Mon Jun 15 09:44:53 1998 -*************** -*** 90,96 **** - #ifdef DEBUG - curv = stdout; - #else -! sprintf(filnm,"data/%s",argv[0]); - if ((curv = fopen(filnm, "w")) == NULL) - { - printf("Could not open data file\n"); ---- 90,96 ---- - #ifdef DEBUG - curv = stdout; - #else -! sprintf(filnm,"data/%s","DOUBLE"); - if ((curv = fopen(filnm, "w")) == NULL) - { - printf("Could not open data file\n"); +--- hint.c.orig Sun May 31 22:34:52 1998 ++++ hint.c Wed Sep 28 20:52:04 2005 +@@ -90,7 +90,7 @@ void main(int argc, char *argv[]) + #ifdef DEBUG + curv = stdout; + #else +- sprintf(filnm,"data/%s",argv[0]); ++ sprintf(filnm,"data/%s","DOUBLE"); + if ((curv = fopen(filnm, "w")) == NULL) + { + printf("Could not open data file\n"); -- cgit v1.2.3