1 |
commit: fb65f8feeb8a6d2fa0a293a38678f325afc75139 |
2 |
Author: spiros <andyspiros <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 13 09:57:21 2011 +0000 |
4 |
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jul 13 09:57:21 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git;a=commit;h=fb65f8fe |
7 |
|
8 |
Some changes. |
9 |
|
10 |
--- |
11 |
.../autobench/files/python/PortageUtils.py | 2 +- |
12 |
.../autobench/files/python/benchutils.py | 25 +------------------- |
13 |
app-benchmarks/autobench/files/python/blastests.in | 2 +- |
14 |
app-benchmarks/autobench/files/python/main.py | 6 ++-- |
15 |
4 files changed, 6 insertions(+), 29 deletions(-) |
16 |
|
17 |
diff --git a/app-benchmarks/autobench/files/python/PortageUtils.py b/app-benchmarks/autobench/files/python/PortageUtils.py |
18 |
index 66d0b80..5bd4c1d 100644 |
19 |
--- a/app-benchmarks/autobench/files/python/PortageUtils.py |
20 |
+++ b/app-benchmarks/autobench/files/python/PortageUtils.py |
21 |
@@ -66,7 +66,7 @@ def install_package(package, env={}, root='/', pkgdir='usr/portage/packages', |
22 |
p = sp.Popen( \ |
23 |
['emerge', '--ignore-default-opts', '-OB', '=' + pkg], \ |
24 |
env = env, \ |
25 |
- stdout = fout, stderr = fout \ |
26 |
+ stdout = fout, stderr = sp.STDOUT \ |
27 |
) |
28 |
p.wait() |
29 |
if logfile is not None: |
30 |
|
31 |
diff --git a/app-benchmarks/autobench/files/python/benchutils.py b/app-benchmarks/autobench/files/python/benchutils.py |
32 |
index 3122f0f..748f928 100644 |
33 |
--- a/app-benchmarks/autobench/files/python/benchutils.py |
34 |
+++ b/app-benchmarks/autobench/files/python/benchutils.py |
35 |
@@ -8,27 +8,4 @@ def mkdir(dir): |
36 |
if not os.path.exists(dir): |
37 |
os.makedirs(dir) |
38 |
|
39 |
-run_cmd = lambda c : sp.Popen(c, stdout=sp.PIPE).communicate()[0] |
40 |
- |
41 |
- |
42 |
-if __name__ == '__main__': |
43 |
- cfg.libdir = '/usr/lib64' |
44 |
- root = '/var/tmp/benchmarks/roots/atlas' |
45 |
- pfile = pc.GetFile('lapack', 'atlas', root) |
46 |
- print pc.Run(pfile, root, False) |
47 |
- |
48 |
- print pfile |
49 |
- req = pc.Requires(pfile) |
50 |
- print req |
51 |
- change = sys.argv[1:] |
52 |
- print change |
53 |
- changes = dict([k.split(':',1) for k in change]) |
54 |
- deps = [] |
55 |
- for r in req: |
56 |
- if r in changes.keys(): |
57 |
- impl = changes[r] |
58 |
- pfile = pc.GetFile(r, changes[r]) |
59 |
- print pc.Run(pfile) |
60 |
- else: |
61 |
- print pc.Run(r) |
62 |
- |
63 |
\ No newline at end of file |
64 |
+run_cmd = lambda c : sp.Popen(c, stdout=sp.PIPE).communicate()[0] |
65 |
\ No newline at end of file |
66 |
|
67 |
diff --git a/app-benchmarks/autobench/files/python/blastests.in b/app-benchmarks/autobench/files/python/blastests.in |
68 |
index d7b1a41..4a6900d 100644 |
69 |
--- a/app-benchmarks/autobench/files/python/blastests.in |
70 |
+++ b/app-benchmarks/autobench/files/python/blastests.in |
71 |
@@ -1,6 +1,6 @@ |
72 |
# Testing almost all implementations using gcc-4.6.1 and enabling vectorization |
73 |
|
74 |
-blas-reference sci-libs/blas-reference-3.3.1-r1 FC=gfortran-4.6.1 FFLAGS="-O3 -pipe -march=native -msse3 -msse4.1 -msse4.2" |
75 |
+blas-reference sci-libs/blas-reference-3.3.1-r1 FC=gfortran-4.5.2 FFLAGS="-O3 -pipe -march=native -msse3 -msse4.1 -msse4.2" |
76 |
acml sci-libs/acml-4.4.0-r1 -acml32-gfortran -acml32-gfortran-openmp -acml64-gfortran-openmp |
77 |
goto sci-libs/gotoblas2-1.13 CFLAGS="-O3 -march=native" USE='incblas' TARGET=NEHALEM |
78 |
atlas sci-libs/atlas-3.9.41 CC=gcc-4.6.1 CFLAGS="-O3 -pipe -march=native -msse3 -msse4.1 -msse4.2" |
79 |
|
80 |
diff --git a/app-benchmarks/autobench/files/python/main.py b/app-benchmarks/autobench/files/python/main.py |
81 |
index 10a2091..47d72eb 100644 |
82 |
--- a/app-benchmarks/autobench/files/python/main.py |
83 |
+++ b/app-benchmarks/autobench/files/python/main.py |
84 |
@@ -121,12 +121,12 @@ if not os.path.exists(cfg.inputfile): |
85 |
print_usage() |
86 |
exit(1) |
87 |
input = file(cfg.inputfile).read() |
88 |
-tests = tests_from_input(input) |
89 |
+cfg.tests = tests_from_input(input) |
90 |
|
91 |
# Write summary |
92 |
print 80*'=' |
93 |
print "The following tests will be run:" |
94 |
-for tname, ttest in tests.items(): |
95 |
+for tname, ttest in cfg.tests.items(): |
96 |
print "Test: " + tname |
97 |
if ttest['descr'] is not None: |
98 |
print " - Description: " + ttest['descr'] |
99 |
@@ -145,7 +145,7 @@ for tname, ttest in tests.items(): |
100 |
print 80*'=' |
101 |
print |
102 |
|
103 |
-for tn,(name,test) in enumerate(tests.items(),1): |
104 |
+for tn,(name,test) in enumerate(cfg.tests.items(),1): |
105 |
Print._level = 0 |
106 |
Print("BEGIN TEST %i - %s" % (tn, name)) |