summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-04-09 23:37:32 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-04-09 23:37:32 +0200
commitc3d002ed1ee61e445aee27842f604b116fb2e729 (patch)
tree1a5de34af2e510daaf9c69a1259ed6b8c75243e1
parentAdded -c / --clean switch. (diff)
downloadauto-numerical-bench-c3d002ed1ee61e445aee27842f604b116fb2e729.tar.gz
auto-numerical-bench-c3d002ed1ee61e445aee27842f604b116fb2e729.tar.bz2
auto-numerical-bench-c3d002ed1ee61e445aee27842f604b116fb2e729.zip
Solved problems with the scalapack module -- working now.
-rw-r--r--numbench/confinput/xmlinput.py5
-rw-r--r--numbench/modules/scalapack.py2
-rw-r--r--samples/scalapacktests.xml4
3 files changed, 8 insertions, 3 deletions
diff --git a/numbench/confinput/xmlinput.py b/numbench/confinput/xmlinput.py
index 0a44b7c..cb82e5c 100644
--- a/numbench/confinput/xmlinput.py
+++ b/numbench/confinput/xmlinput.py
@@ -125,6 +125,11 @@ def parseConf(fname):
runenv = getEnvFromNode(t, 'runenv')
# Adjust PATH
+ if compileenv.has_key('PATH'):
+ compileenv['PATH'] += ':' + os.environ['PATH']
+ else:
+ compileenv['PATH'] = os.environ['PATH']
+
if runenv.has_key('PATH'):
runenv['PATH'] += ':' + os.environ['PATH']
else:
diff --git a/numbench/modules/scalapack.py b/numbench/modules/scalapack.py
index 28e694f..03fa190 100644
--- a/numbench/modules/scalapack.py
+++ b/numbench/modules/scalapack.py
@@ -57,7 +57,7 @@ class Module:
btlconfig = dict (
CXX = 'mpic++',
source = 'libs/PBLAS/main.cpp',
- preargs = ('mpirun', '-np', self.numproc),
+ preargs = ('mpirun', '-np', str(self.numproc)),
exe = pjoin(test['testdir'], implementation, 'test'),
logdir = pjoin(test['logdir'], implementation),
testdir = pjoin(test['testdir'], implementation),
diff --git a/samples/scalapacktests.xml b/samples/scalapacktests.xml
index b74b5bc..cadf14b 100644
--- a/samples/scalapacktests.xml
+++ b/samples/scalapacktests.xml
@@ -1,14 +1,14 @@
<tests>
<test id="reference-O3">
- <pkg>sci-libs/scalapack-1.8.0</pkg>
+ <pkg>sci-libs/scalapack-2.0.1</pkg>
<emergeenv>
<var name="FFLAGS">-O3</var>
</emergeenv>
</test>
<test id="reference-O1">
- <pkg>sci-libs/scalapack-1.8.0</pkg>
+ <pkg>sci-libs/scalapack-2.0.1</pkg>
<emergeenv>
<var name="FFLAGS">-O1</var>
</emergeenv>