Date: Sun, 6 Apr 2003 18:36:29 +0200 (CEST) From: Thierry Thomas <thierry@pompo.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: May THO <thobouli@free.fr> Subject: ports/50646: New port: benchmarks/scimark2c - an ANSI C version of the SciMark2 benchmark. Message-ID: <20030406163629.6FE7B751E@graf.pompo.net> Resent-Message-ID: <200304061640.h36Ge8S8037974@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 50646 >Category: ports >Synopsis: New port: benchmarks/scimark2c - an ANSI C version of the SciMark2 benchmark. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 06 09:40:08 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Thierry Thomas >Release: FreeBSD 4.8-RC i386 >Organization: Kabbale Eros >Environment: System: FreeBSD graf.pompo.net 4.8-RC FreeBSD 4.8-RC #0: Sat Mar 29 02:08:33 CET 2003 thierry@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386 >Description: 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. Suggested by May Tho. >How-To-Repeat: N/A. >Fix: Please execute the following shar file: # 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: # # benchmarks/scimark2c # benchmarks/scimark2c/files # benchmarks/scimark2c/files/patch-Makefile # benchmarks/scimark2c/files/patch-scimark2.c # benchmarks/scimark2c/pkg-plist # benchmarks/scimark2c/pkg-descr # benchmarks/scimark2c/distinfo # benchmarks/scimark2c/Makefile # echo c - benchmarks/scimark2c mkdir -p benchmarks/scimark2c > /dev/null 2>&1 echo c - benchmarks/scimark2c/files mkdir -p benchmarks/scimark2c/files > /dev/null 2>&1 echo x - benchmarks/scimark2c/files/patch-Makefile sed 's/^X//' >benchmarks/scimark2c/files/patch-Makefile << 'END-of-benchmarks/scimark2c/files/patch-Makefile' X--- Makefile.orig Thu Jul 6 00:07:45 2000 X+++ Makefile Sat Apr 5 22:53:49 2003 X@@ -5,8 +5,8 @@ X X all: scimark2 X X-CC = cc X-CFLAGS = -O X+#CC = cc X+#CFLAGS = -O X LDFLAGS = X X OBJS = FFT.o kernel.o Stopwatch.o Random.o SOR.o SparseCompRow.o \ END-of-benchmarks/scimark2c/files/patch-Makefile echo x - benchmarks/scimark2c/files/patch-scimark2.c sed 's/^X//' >benchmarks/scimark2c/files/patch-scimark2.c << 'END-of-benchmarks/scimark2c/files/patch-scimark2.c' X--- scimark2.c.orig Sat Apr 29 06:21:12 2000 X+++ scimark2.c Sat Apr 5 23:13:45 2003 X@@ -58,7 +58,7 @@ X X X print_banner(); X- printf("Using %10.2f seconds min time per kenel.\n", min_time); X+ printf("Using %10.2f seconds min time per kernel.\n", min_time); X X res[1] = kernel_measureFFT( FFT_size, min_time, R); X res[2] = kernel_measureSOR( SOR_size, min_time, R); END-of-benchmarks/scimark2c/files/patch-scimark2.c echo x - benchmarks/scimark2c/pkg-plist sed 's/^X//' >benchmarks/scimark2c/pkg-plist << 'END-of-benchmarks/scimark2c/pkg-plist' Xbin/scimark2 END-of-benchmarks/scimark2c/pkg-plist echo x - benchmarks/scimark2c/pkg-descr sed 's/^X//' >benchmarks/scimark2c/pkg-descr << 'END-of-benchmarks/scimark2c/pkg-descr' XThis is an ANSI C version of the SciMark2 benchmark, translated from the Xoriginal Java sources. The intent in making this benchmark available in XC is mainly for performance comparisons. X XResults of this benchmark can be sent to pozo@nist.gov. X XWWW: http://math.nist.gov/scimark2/download_c.html END-of-benchmarks/scimark2c/pkg-descr echo x - benchmarks/scimark2c/distinfo sed 's/^X//' >benchmarks/scimark2c/distinfo << 'END-of-benchmarks/scimark2c/distinfo' XMD5 (scimark2c.zip) = 3fe0d6b3c8068bf7481ce45fe51d96d0 END-of-benchmarks/scimark2c/distinfo echo x - benchmarks/scimark2c/Makefile sed 's/^X//' >benchmarks/scimark2c/Makefile << 'END-of-benchmarks/scimark2c/Makefile' X# New ports collection makefile for: scimark2c X# Date created: Sat Apr 05 2003 X# Whom: thierry@pompo.net X# X# $FreeBSD$ X# X XPORTNAME= scimark2c XPORTVERSION= 2.0 XCATEGORIES= benchmarks XMASTER_SITES= http://math.nist.gov/scimark2/ XDISTNAME= ${PORTNAME} X XMAINTAINER= thierry@pompo.net XCOMMENT= An ANSI C version of the SciMark2 benchmark X XWRKSRC= ${WRKDIR} XUSE_REINPLACE= yes XUSE_ZIP= yes X XMALLOC2STD= kernel.c Stopwatch.c Random.c array.c X Xpost-patch: X.for file in ${MALLOC2STD} X @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|" ${WRKSRC}/${file} X.endfor X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/scimark2 ${PREFIX}/bin X Xpost-install: X @${ECHO} "*****************************************************************************" X @${ECHO} "" X @${ECHO} " Just run scimark2 or scimark2 -large" X @${ECHO} "" X @${ECHO} " The first SciMark number reported is the composite score, followed by the an" X @${ECHO} " approximate Mflop rate for each kernel." X @${ECHO} "" X @${ECHO} " You may try to hack CC or CFLAGS in /etc/make.conf..." X @${ECHO} "" X @${ECHO} "*****************************************************************************" X X.include <bsd.port.mk> END-of-benchmarks/scimark2c/Makefile exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030406163629.6FE7B751E>