Exemplo n.º 1
0
    def runTest(self, test, implementation):
        btlincludes = ['libs/' + i for i in \
                       ('BLAS', 'LAPACK', 'BLACS', 'PBLAS', 'STL')]

        # Set up btlconfig
        btlconfig = dict (
          CXX='mpic++',
          source='libs/PBLAS/main.cpp',
          preargs=('mpirun', '-np', str(self.numproc)),
          exe=pjoin(test['testdir'], implementation, 'test'),
          logdir=pjoin(test['logdir'], implementation),
          testdir=pjoin(test['testdir'], implementation),
          btlincludes=tuple(btlincludes),
          defines=('PBLASNAME=' + self.libname,),
          flags=alt.getFlags(test, self.libname, implementation),
          tests=self.tests
        )

        return btlBase.runTest(self, test, btlconfig)