Date: Fri, 11 May 2001 09:14:51 -0700 (PDT) From: sf@dsinw.com To: freebsd-gnats-submit@FreeBSD.org Subject: ports/27272: New Port: John McCalpin's STREAM Benchmark Message-ID: <200105111614.f4BGEp916250@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 27272 >Category: ports >Synopsis: New Port: John McCalpin's STREAM Benchmark >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 11 09:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Scott Flatman >Release: 4.3-RELEASE >Organization: >Environment: >Description: New Port: John McCalpin's STREAM benchmark >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # stream # stream/pkg-comment # stream/pkg-descr # stream/pkg-plist # stream/Makefile # stream/files # stream/files/Makefile # stream/files/patch-aa # stream/distinfo # echo c - stream mkdir -p stream > /dev/null 2>&1 echo x - stream/pkg-comment sed 's/^X//' >stream/pkg-comment << 'END-of-stream/pkg-comment' XJohn McCalpin's STREAM benchmark END-of-stream/pkg-comment echo x - stream/pkg-descr sed 's/^X//' >stream/pkg-descr << 'END-of-stream/pkg-descr' XFrom the STREAM FAQ: X XThe STREAM benchmark is a simple synthetic benchmark program that Xmeasures sustainable memory bandwidth (in MB/s) and the corresponding Xcomputation rate for simple vector kernels. X XWWW: http://www.cs.virginia.edu/stream/ X X- Scott Flatman <sf@dsinw.com> END-of-stream/pkg-descr echo x - stream/pkg-plist sed 's/^X//' >stream/pkg-plist << 'END-of-stream/pkg-plist' Xbin/stream END-of-stream/pkg-plist echo x - stream/Makefile sed 's/^X//' >stream/Makefile << 'END-of-stream/Makefile' X# New ports collection makefile for: stream X# Date created: 10 May 2001 X# Whom: Scott Flatman <sf@dsinw.com> X# X# $FreeBSD$ X XPORTNAME= stream XPORTVERSION= 1.0 XCATEGORIES= benchmarks XMASTER_SITES= ftp://ftp.cs.virginia.edu/pub/stream/Code/ XDISTFILES= second_cpu.c stream_d.c X XMAINTAINER= sf@dsinw.com X XDIST_SUBDIR= stream-${PORTVERSION} XWRKSRC= ${WRKDIR}/${DIST_SUBDIR} X Xdo-extract: X @${RM} -rf ${WRKDIR} X @${MKDIR} ${WRKDIR} X @${CP} -r ${_DISTDIR} ${WRKDIR} X @${CP} ${FILESDIR}/Makefile ${WRKSRC} X Xpost-install: X strip ${PREFIX}/bin/stream X X.include <bsd.port.mk> END-of-stream/Makefile echo c - stream/files mkdir -p stream/files > /dev/null 2>&1 echo x - stream/files/Makefile sed 's/^X//' >stream/files/Makefile << 'END-of-stream/files/Makefile' X# @(#) stream didn't come with a makefile X XCFLAGS= -Wall -pedantic -ansi -pipe -O XBINOWN= root XBINGRP= wheel XBINMODE= 0555 XINSTALLDIR= /usr/local/bin X X# season to flavor, see the stream docs XNSIZE= 1000000 X X# Xall: stream_d.o second_cpu.o X ${CC} -o stream stream_d.o second_cpu.o -lm X Xstream_d.o: stream_d.c X ${CC} ${CFLAGS} -DNSIZE=${NSIZE} -c stream_d.c X Xsecond_cpu.o: second_cpu.c X ${CC} ${CFLAGS} -c second_cpu.c X Xinstall: X ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} stream ${INSTALLDI R} END-of-stream/files/Makefile echo x - stream/files/patch-aa sed 's/^X//' >stream/files/patch-aa << 'END-of-stream/files/patch-aa' X--- stream_d.c.orig Thu May 10 13:43:41 2001 X+++ stream_d.c Thu May 10 13:43:41 2001 X@@ -23,7 +23,7 @@ X * that should be good to about 5% precision. X */ X X-# define N 1000000 X+# define N NSIZE X # define NTIMES 10 X # define OFFSET 0 X END-of-stream/files/patch-aa echo x - stream/distinfo sed 's/^X//' >stream/distinfo << 'END-of-stream/distinfo' XMD5 (stream-1.0/second_cpu.c) = ec4d884bbe6832f21615617e54af187f XMD5 (stream-1.0/stream_d.c) = 1b064704a0e87599fa773b7928034be3 END-of-stream/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105111614.f4BGEp916250>