Skip to content

Commit

Permalink
Prepare for cabal upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpots committed Oct 1, 2010
1 parent adf4765 commit e8a0a22
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 36 deletions.
1 change: 1 addition & 0 deletions FindBench.hs
Expand Up @@ -31,6 +31,7 @@ findLocalBenchmarks baseDir = do
when (null allGroups) printNoBenchmarksWarning
putStrLn $ "... found ("++ (show.length$ allBms)++")"
putStrLn $ " writing benchmark manifest to "++outFile
createDirectoryIfMissing True (baseDir </> "Fibon")
h <- openFile outFile WriteMode
hPutStrLn h moduleHeader
hPutStrLn h $ moduleImports (join "." benchmarksModule) qualifiedBms
Expand Down
15 changes: 0 additions & 15 deletions README
@@ -1,18 +1,3 @@
-------------------------------------------------------------------
Goals
-------------------------------------------------------------------
+ Drop in replacement for nofib in GHC
+ Can be used to collect other kinds of info (papi numbers)
+ By default will collect timing info
+ Can be configured to collect other info (e.g. heap usage, compile
time, etc)

-------------------------------------------------------------------
TODO
-------------------------------------------------------------------
fibon-analyse
- write out data

-------------------------------------------------------------------
Benchmark Notes
-------------------------------------------------------------------
Expand Down
68 changes: 60 additions & 8 deletions fibon.cabal
@@ -1,22 +1,72 @@
-- The name of the package.
Name: fibon
Version: 1.0.0
Version: 0.1.0
Synopsis: A reworking of the classic nofib benchmark suite
-- Description:
Description:
Fibon is a set of tools for running and analyzing benchmark programs.
The fibon package contains the tools for benchmarking, but not the
benchmarks themselves. The package will build, but will not have any
benchmarks to run. A set of benchmarks can be found at

http://github.com/dmpots/fibon-benchmarks

Installing the cabal package will get you the following tools

* fibon - runs the benchmarks
* fibon-analyse - analyses the results of a benchmark run
* fibon-init - generate a benchmark description from a cabal file

See http://github.com/dmpots/fibon/wiki for more details
License: BSD3
License-file: LICENSE
Author: David M Peixotto
Maintainer: dmp@rice.edu
Stability: Experimental
Category: Testing
Category: Benchmarking
Homepage: http://github.com/dmpots/fibon/wiki
Bug-reports: http://github.com/dmpots/fibon/issues
Build-type: Custom
Cabal-version: >=1.8

-- Extra files to be distributed with the package, such as examples or
-- a README.
--Extra-source-files:
Extra-source-files: README
FindBench.hs
FindConfig.hs
lib/Fibon/BenchmarkInstance.hs
lib/Fibon/ConfigMonad.hs
lib/Fibon/FlagConfig.hs
lib/Fibon/InputSize.hs
lib/Fibon/Result.hs
lib/Fibon/Timeout.hs
tools/fibon-analyse/Fibon/Analyse/Analysis.hs
tools/fibon-analyse/Fibon/Analyse/ExtraStats/GhcStats.hs
tools/fibon-analyse/Fibon/Analyse/ExtraStats.hs
tools/fibon-analyse/Fibon/Analyse/Main.hs
tools/fibon-analyse/Fibon/Analyse/Metrics.hs
tools/fibon-analyse/Fibon/Analyse/Output.hs
tools/fibon-analyse/Fibon/Analyse/Parse.hs
tools/fibon-analyse/Fibon/Analyse/Result.hs
tools/fibon-analyse/Fibon/Analyse/Tables.hs
tools/fibon-init/Main.hs
tools/fibon-run/Fibon/Run/Actions.hs
tools/fibon-run/Fibon/Run/BenchmarkBundle.hs
tools/fibon-run/Fibon/Run/BenchmarkRunner.hs
tools/fibon-run/Fibon/Run/CommandLine.hs
tools/fibon-run/Fibon/Run/Config/Default.hs
tools/fibon-run/Fibon/Run/Config/Local.hs
tools/fibon-run/Fibon/Run/Config.hs
tools/fibon-run/Fibon/Run/Log.hs
tools/fibon-run/Fibon/Run/Main.hs
tools/fibon-run/Fibon/Run/Manifest.hs
tools/fibon-run/Fibon/Run/SysTools.hs

-- Constraint on the version of Cabal needed to build this package.
Cabal-version: >=1.8
source-repository head
type: git
location: git://github.com/dmpots/fibon.git

source-repository this
type: git
location: git://github.com/dmpots/fibon.git
tag: v0.1.0

Flag analyse
description: Build the fibon-analyse program
Expand Down Expand Up @@ -71,3 +121,5 @@ Executable fibon-analyse
, vector == 0.6.*
, statistics == 0.6.*
extensions: CPP


16 changes: 3 additions & 13 deletions tools/fibon-run/Fibon/Run/Config/Default.hs
Expand Up @@ -8,28 +8,18 @@ config :: RunConfig
config = RunConfig {
configId = "default"
, runList = map RunSingle allBenchmarks
--, sizeList = [Test, Ref]
--, tuneList = [Base, Peak]
, sizeList = [Test, Ref]
, sizeList = [Ref]
, tuneList = [Base, Peak]
, iterations = 10
, configBuilder = build
}

build :: ConfigBuilder
build ConfigTuneDefault ConfigBenchDefault = do
append ConfigureFlags "--ghc"
append ConfigureFlags "--disable-optimization"
done

build (ConfigTune Base) ConfigBenchDefault = do
append ConfigureFlags "--ghc-option=-O0"
append ConfigureFlags "--disable-optimization"

build (ConfigTune Peak) ConfigBenchDefault = do
append ConfigureFlags "--ghc-option=-O2"

--flags (ConfigTuneDefault) (ConfigBench Scc)= do
-- append ConfigureFlags "--ghc-options -O3"
append ConfigureFlags "--enable-optimization=2"

build _ _ = do
done

0 comments on commit e8a0a22

Please sign in to comment.