From cfa6b6644b6d08dbe59233e6f2da97e4b03235e7 Mon Sep 17 00:00:00 2001 From: Andrea Arteaga Date: Sat, 4 Aug 2012 01:20:19 +0200 Subject: Initial module lapacke. --- numbench/modules/internal/lapackBase.py | 4 ++-- numbench/modules/lapacke.py | 29 +++++++++++++++++++++++++++++ samples/lapacketests.xml | 19 +++++++++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 numbench/modules/lapacke.py create mode 100644 samples/lapacketests.xml 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 +#===================================================== +# +# 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 @@ + + + + sci-libs/lapacke-reference-3.4.1 + + -O3 + + openblas-threads + + + + sci-libs/mkl-10.3.7.256 + mkl32* + *int64* + *openmp + *dynamic* + + + -- cgit v1.2.3-65-gdbad