mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Add stream-1.0, a synthetic benchmark program that measures sustainable
memory bandwidth PR: 27272 Submitted by: Scott Flatman <sf@dsinw.com>
This commit is contained in:
parent
9184f8ca1e
commit
20364ec3d4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49688
@ -17,6 +17,7 @@
|
||||
SUBDIR += pybench
|
||||
SUBDIR += rawio
|
||||
SUBDIR += siege
|
||||
SUBDIR += stream
|
||||
SUBDIR += tcpblast
|
||||
SUBDIR += tmetric
|
||||
SUBDIR += ubench
|
||||
|
25
benchmarks/stream/Makefile
Normal file
25
benchmarks/stream/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# New ports collection makefile for: stream
|
||||
# Date created: 10 May 2001
|
||||
# Whom: Scott Flatman <sf@dsinw.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= stream
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= benchmarks
|
||||
MASTER_SITES= ftp://ftp.cs.virginia.edu/pub/stream/Code/
|
||||
DISTFILES= second_cpu.c stream_d.c
|
||||
DIST_SUBDIR= stream-${PORTVERSION}
|
||||
|
||||
MAINTAINER= sf@dsinw.com
|
||||
|
||||
MAKEFILE= ${FILESDIR}/Makefile
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@${CP} -r ${_DISTDIR} ${WRKDIR}
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/stream
|
||||
|
||||
.include <bsd.port.mk>
|
2
benchmarks/stream/distinfo
Normal file
2
benchmarks/stream/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (stream-1.0/second_cpu.c) = ec4d884bbe6832f21615617e54af187f
|
||||
MD5 (stream-1.0/stream_d.c) = 1b064704a0e87599fa773b7928034be3
|
24
benchmarks/stream/files/Makefile
Normal file
24
benchmarks/stream/files/Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
# $FreeBSD$
|
||||
# stream didn't come with a makefile
|
||||
|
||||
CFLAGS+= -Wall -pedantic -ansi -pipe
|
||||
BINOWN= root
|
||||
BINGRP= wheel
|
||||
BINMODE= 0555
|
||||
INSTALLDIR= ${PREFIX}/bin
|
||||
|
||||
# season to flavor, see the stream docs
|
||||
NSIZE= 1000000
|
||||
|
||||
#
|
||||
all: stream_d.o second_cpu.o
|
||||
${CC} -o stream stream_d.o second_cpu.o -lm
|
||||
|
||||
stream_d.o: stream_d.c
|
||||
${CC} ${CFLAGS} -DNSIZE=${NSIZE} -c stream_d.c
|
||||
|
||||
second_cpu.o: second_cpu.c
|
||||
${CC} ${CFLAGS} -c second_cpu.c
|
||||
|
||||
install:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} stream ${INSTALLDIR}
|
13
benchmarks/stream/files/patch-stream_d.c
Normal file
13
benchmarks/stream/files/patch-stream_d.c
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- stream_d.c.orig Tue Nov 6 15:02:21 2001
|
||||
+++ stream_d.c Tue Nov 6 15:03:11 2001
|
||||
@@ -23,7 +23,7 @@
|
||||
* that should be good to about 5% precision.
|
||||
*/
|
||||
|
||||
-# define N 1000000
|
||||
+# define N NSIZE
|
||||
# define NTIMES 10
|
||||
# define OFFSET 0
|
||||
|
1
benchmarks/stream/pkg-comment
Normal file
1
benchmarks/stream/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Synthetic benchmark program that measures sustainable memory bandwidth
|
7
benchmarks/stream/pkg-descr
Normal file
7
benchmarks/stream/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
The STREAM benchmark is a simple synthetic benchmark program that
|
||||
measures sustainable memory bandwidth (in MB/s) and the corresponding
|
||||
computation rate for simple vector kernels.
|
||||
|
||||
WWW: http://www.cs.virginia.edu/stream/
|
||||
|
||||
- Scott Flatman <sf@dsinw.com>
|
1
benchmarks/stream/pkg-plist
Normal file
1
benchmarks/stream/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
bin/stream
|
Loading…
Reference in New Issue
Block a user