summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-08-04 01:20:19 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-08-04 01:20:19 +0200
commitcfa6b6644b6d08dbe59233e6f2da97e4b03235e7 (patch)
treeecf90ca9a3bc96bf704834357f20edd6e1955a7d
parentNew BTL module lapacke. (diff)
downloadauto-numerical-bench-cfa6b6644b6d08dbe59233e6f2da97e4b03235e7.tar.gz
auto-numerical-bench-cfa6b6644b6d08dbe59233e6f2da97e4b03235e7.tar.bz2
auto-numerical-bench-cfa6b6644b6d08dbe59233e6f2da97e4b03235e7.zip
Initial module lapacke.
-rw-r--r--numbench/modules/internal/lapackBase.py4
-rw-r--r--numbench/modules/lapacke.py29
-rw-r--r--samples/lapacketests.xml19
3 files changed, 50 insertions, 2 deletions
diff --git a/numbench/modules/internal/lapackBase.py b/numbench/modules/internal/lapackBase.py
index b0f4a4c..e7b458d 100644
--- a/numbench/modules/internal/lapackBase.py
+++ b/numbench/modules/internal/lapackBase.py
@@ -44,7 +44,7 @@ def runTest(self, test, implementation):
logdir = pjoin(test['logdir'], implementation),
testdir = pjoin(test['testdir'], implementation),
btlincludes = ('libs/BLAS', 'libs/LAPACK'),
- defines = ('LAPACKNAME='+self.libname, ),
+ defines = ('LAPACKNAME='+self.libname, self.libname.upper()+"_INTERFACE"),
flags = alt.getFlags(test, self.libname, implementation),
tests = self.tests
)
@@ -52,4 +52,4 @@ def runTest(self, test, implementation):
return btlBase.runTest(self, test, btlconfig)
getTests = btlBase.getTests
-reportConf = btlBase.reportConf \ No newline at end of file
+reportConf = btlBase.reportConf
diff --git a/numbench/modules/lapacke.py b/numbench/modules/lapacke.py
new file mode 100644
index 0000000..2f300b7
--- /dev/null
+++ b/numbench/modules/lapacke.py
@@ -0,0 +1,29 @@
+#=====================================================
+# Copyright (C) 2012 Andrea Arteaga <andyspiros@gmail.com>
+#=====================================================
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+import internal.lapackBase as base
+
+class Module:
+ libname = 'lapacke'
+ descr = 'Test module for LAPACKe implementations'
+
+ __init__ = base.init
+ getImplementations = base.getImplementations
+ runTest = base.runTest
+ getTests = base.getTests
+ reportConf = base.reportConf
+
diff --git a/samples/lapacketests.xml b/samples/lapacketests.xml
new file mode 100644
index 0000000..bf25ab7
--- /dev/null
+++ b/samples/lapacketests.xml
@@ -0,0 +1,19 @@
+<tests>
+
+ <test id="reference-openblas">
+ <pkg>sci-libs/lapacke-reference-3.4.1</pkg>
+ <emergeenv>
+ <var name="FFLAGS">-O3</var>
+ </emergeenv>
+ <required name="blas">openblas-threads</required>
+ </test>
+
+ <test id="mkl">
+ <pkg>sci-libs/mkl-10.3.7.256</pkg>
+ <skip>mkl32*</skip>
+ <skip>*int64*</skip>
+ <skip>*openmp</skip>
+ <skip>*dynamic*</skip>
+ </test>
+
+</tests>