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 /numbench
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.
Diffstat (limited to 'numbench')
-rw-r--r--numbench/modules/internal/lapackBase.py4
-rw-r--r--numbench/modules/lapacke.py29
2 files changed, 31 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
+