Tpetra Matrix/Vector Services Version of the Day
TpetraExt_MatrixMatrix.cpp
00001 /*
00002 // @HEADER
00003 // ***********************************************************************
00004 // 
00005 //          Tpetra: Templated Linear Algebra Services Package
00006 //                 Copyright (2008) Sandia Corporation
00007 // 
00008 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00009 // the U.S. Government retains certain rights in this software.
00010 // 
00011 // Redistribution and use in source and binary forms, with or without
00012 // modification, are permitted provided that the following conditions are
00013 // met:
00014 //
00015 // 1. Redistributions of source code must retain the above copyright
00016 // notice, this list of conditions and the following disclaimer.
00017 //
00018 // 2. Redistributions in binary form must reproduce the above copyright
00019 // notice, this list of conditions and the following disclaimer in the
00020 // documentation and/or other materials provided with the distribution.
00021 //
00022 // 3. Neither the name of the Corporation nor the names of the
00023 // contributors may be used to endorse or promote products derived from
00024 // this software without specific prior written permission.
00025 //
00026 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
00027 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00029 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
00030 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00031 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00032 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00033 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00034 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00035 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00036 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00037 //
00038 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00039 // 
00040 // ************************************************************************
00041 // @HEADER
00042 */
00043 
00044 #include "TpetraExt_MatrixMatrix.hpp"
00045 
00046 #ifdef HAVE_TPETRA_EXPLICIT_INSTANTIATION
00047 
00048 // #include "Tpetra_ExplicitInstantiationHelpers.hpp"
00049 
00050 #include "TpetraExt_MatrixMatrix_def.hpp"
00051 
00052 #include <Kokkos_SerialNode.hpp>
00053 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00054 #  include <Kokkos_OpenMPNode.hpp>
00055 #endif
00056 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00057 #  include <Kokkos_TBBNode.hpp>
00058 #endif
00059 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00060 #  include <Kokkos_TPINode.hpp>
00061 #endif
00062 #if defined(HAVE_KOKKOSCLASSIC_THRUST)
00063 #  include <Kokkos_ThrustGPUNode.hpp>
00064 #endif
00065 
00066 namespace Tpetra {
00067 
00068 #if defined(HAVE_TPETRA_INST_DOUBLE)
00069   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::SerialNode)
00070 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00071   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::OpenMPNode)
00072 #endif
00073 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00074   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::TBBNode)
00075 #endif
00076 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00077   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::TPINode)
00078 #endif
00079 #if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_DOUBLE)
00080   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::ThrustGPUNode)
00081 #endif
00082 #endif // double
00083 #if defined(HAVE_TPETRA_INST_FLOAT)
00084   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::SerialNode)
00085 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00086   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::OpenMPNode)
00087 #endif
00088 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00089   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::TBBNode)
00090 #endif
00091 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00092   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::TPINode)
00093 #endif
00094 #if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_FLOAT)
00095     TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::ThrustGPUNode)
00096 #endif
00097 #endif // float
00098 #if defined(HAVE_TPETRA_INST_COMPLEX_DOUBLE)
00099   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::SerialNode)
00100 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00101   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::OpenMPNode)
00102 #endif
00103 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00104   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::TBBNode)
00105 #endif
00106 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00107     TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::TPINode)
00108 #endif
00109 // no complex on GPU support for now
00110 //#if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_DOUBLE)
00111 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::ThrustGPUNode)
00112 //#endif
00113 #endif // complex double
00114 #if defined(HAVE_TPETRA_INST_COMPLEX_FLOAT)
00115   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::SerialNode)
00116 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00117   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::OpenMPNode)
00118 #endif
00119 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00120   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::TBBNode)
00121 #endif
00122 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00123     TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::TPINode)
00124 #endif
00125 // no complex on GPU support for now
00126 //#if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_DOUBLE)
00127 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::ThrustGPUNode)
00128 //#endif
00129 #endif // complex float
00130 
00131 
00132 #ifdef HAVE_TPETRA_INST_INT_LONG
00133 #if defined(HAVE_TPETRA_INST_DOUBLE)
00134   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::SerialNode)
00135 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00136   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::OpenMPNode)
00137 #endif
00138 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00139   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::TBBNode)
00140 #endif
00141 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00142   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::TPINode)
00143 #endif
00144 #if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_DOUBLE)
00145   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::ThrustGPUNode)
00146 #endif
00147 #endif // double
00148 #if defined(HAVE_TPETRA_INST_FLOAT)
00149   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::SerialNode)
00150 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00151   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::OpenMPNode)
00152 #endif
00153 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00154   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::TBBNode)
00155 #endif
00156 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00157   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::TPINode)
00158 #endif
00159 #if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_FLOAT)
00160     TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::ThrustGPUNode)
00161 #endif
00162 #endif // float
00163 #if defined(HAVE_TPETRA_INST_COMPLEX_DOUBLE)
00164   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::SerialNode)
00165 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00166   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::OpenMPNode)
00167 #endif
00168 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00169   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::TBBNode)
00170 #endif
00171 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00172     TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::TPINode)
00173 #endif
00174 // no complex on GPU support for now
00175 //#if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_DOUBLE)
00176 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::ThrustGPUNode)
00177 //#endif
00178 #endif // complex double
00179 #if defined(HAVE_TPETRA_INST_COMPLEX_FLOAT)
00180   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::SerialNode)
00181 #if defined(HAVE_KOKKOSCLASSIC_OPENMP)
00182   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::OpenMPNode)
00183 #endif
00184 #if defined(HAVE_KOKKOSCLASSIC_TBB)
00185   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::TBBNode)
00186 #endif
00187 #if defined(HAVE_KOKKOSCLASSIC_THREADPOOL)
00188     TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::TPINode)
00189 #endif
00190 // no complex on GPU support for now
00191 //#if defined(HAVE_KOKKOSCLASSIC_THRUST) && defined(HAVE_KOKKOSCLASSIC_CUDA_DOUBLE)
00192 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::ThrustGPUNode)
00193 //#endif
00194 #endif // complex float
00195 #endif // <int,long>
00196 
00197 
00198 } // namespace Tpetra
00199 
00200 #endif // HAVE_TPETRA_EXPLICIT_INSTANTIATION
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines