Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Tsqr_SeqTest.hpp
00001 //@HEADER
00002 // ************************************************************************
00003 // 
00004 //          Kokkos: Node API and Parallel Node Kernels
00005 //              Copyright (2009) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ************************************************************************
00027 //@HEADER
00028 
00029 #ifndef __TSQR_Test_SeqTest_hpp
00030 #define __TSQR_Test_SeqTest_hpp
00031 
00032 #include <Tsqr_ConfigDefs.hpp>
00033 
00034 #include <cstring> // size_t definition
00035 #include <string>
00036 #include <iostream>
00037 
00038 
00039 namespace TSQR {
00040   namespace Test {
00041 
00048     void
00049     verifySeqTsqr (std::ostream& out,
00050        const int nrows, 
00051        const int ncols, 
00052        const size_t cache_size_hint,
00053        const bool test_complex_arithmetic,
00054        const bool save_matrices,
00055        const bool contiguous_cache_blocks,
00056        const std::string& additionalFieldNames,
00057        const std::string& additionalData,
00058        const bool printFieldNames,
00059        const bool human_readable = false,
00060        const bool b_debug = false);
00061 
00067     void
00068     verifyLapack (std::ostream& out,
00069       const int nrows, 
00070       const int ncols, 
00071       const bool test_complex_arithmetic,
00072       const std::string& additionalFieldNames,
00073       const std::string& additionalData,
00074       const bool printFieldNames,
00075       const bool human_readable,
00076       const bool b_debug = false);
00077 
00088     void
00089     benchmarkSeqTsqr (std::ostream& out,
00090           const int numRows,
00091           const int numCols,
00092           const int numTrials,
00093           const size_t cacheSizeHint,
00094           const bool contiguousCacheBlocks,
00095           const bool testComplex,
00096           const std::string& additionalFieldNames,
00097           const std::string& additionalData,
00098           const bool printFieldNames,
00099           const bool humanReadable);
00100 
00111     void
00112     benchmarkLapack (std::ostream& out,
00113          const int numRows,
00114          const int numCols,
00115          const int numTrials,
00116          const bool testComplex,
00117          const std::string& additionalFieldNames,
00118          const std::string& additionalData,
00119          const bool printFieldNames,
00120          const bool humanReadable);
00121 
00122   } // namespace Test
00123 } // namespace TSQR
00124 
00125 #endif // __TSQR_Test_SeqTest_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends