-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathREADME
55 lines (41 loc) · 2.3 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
These are the release notes for opm-benchmarks
Opm-benchmarks currently consists of one benchmark with three included data sets.
It is the mpi version of the upscale_relperm code from opm-upscaling, and can
distribute to a maximum of twenty cpus in it's current form. The benhcmark is
copyrighted by Statoil, and licensed under GPL 3+. See COPYING for details.
ON WHAT PLATFORMS DOES IT RUN?
It is only developed for GNU/Linux. All the larger distributions are
usually tested.
HOW MUCH MEMORY DO I NEED?
The benchmark itself uses just over 100MB per process on the smallest data set.
Compiling the benchmark is quite memory intensive. Plan for at least one gigabyte
of available memory for each thread when compiling. Number of threads is given
with the -j option in the opm-benchmarks/config.opts file.
BUILDING AND RUNNING THE BENCHMARK
#!/bin/bash
# This script downloads all necessary source code, build the DUNE and OPM modules
# and finally run the benchmark
######################################################
# Obtain source code
######################################################
# Make new directory to store all source code and module libraries mkdir OPM cd OPM
# Checkout DUNE core modules from SVN (stable 2.2 release)
svn co https://svn.dune-project.org/svn/dune-common/branches/release-2.2 dune-common
svn co https://svn.dune-project.org/svn/dune-geometry/branches/release-2.2 dune-geometry
svn co https://svn.dune-project.org/svn/dune-grid/branches/release-2.2 dune-grid
svn co https://svn.dune-project.org/svn/dune-istl/branches/release-2.2 dune-istl
# Clone OPM modules
git clone https://github.com/OPM/opm-core.git
git clone https://github.com/OPM/opm-porsol.git
git clone https://github.com/OPM/opm-upscaling.git
git clone https://github.com/OPM/dune-cornerpoint.git
git clone https://github.com/OPM/opm-benchmarks.git
######################################################
# Build from source
######################################################
nice dune-common/bin/dunecontrol --opts=opm-benchmarks/config.opts all # You may want to edit the config.opts file
######################################################
# Run benchmark
######################################################
nice mpirun -np 4 ./opm-benchmarks/benchmarks/upscale_relperm_benchmark
# You may want to change the number of processors