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_KOKKOS_TBB)
00054 #  include <Kokkos_TBBNode.hpp>
00055 #endif
00056 #if defined(HAVE_KOKKOS_THREADPOOL)
00057 #  include <Kokkos_TPINode.hpp>
00058 #endif
00059 #if defined(HAVE_KOKKOS_THRUST)
00060 #  include <Kokkos_ThrustGPUNode.hpp>
00061 #endif
00062 
00063 namespace Tpetra {
00064 
00065 #if defined(HAVE_TPETRA_INST_DOUBLE)
00066   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::SerialNode)
00067 #if defined(HAVE_KOKKOS_TBB)
00068   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::TBBNode)
00069 #endif
00070 #if defined(HAVE_KOKKOS_THREADPOOL)
00071   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::TPINode)
00072 #endif
00073 #if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_DOUBLE)
00074   TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::ThrustGPUNode)
00075 #endif
00076 #endif // double
00077 #if defined(HAVE_TPETRA_INST_FLOAT)
00078   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::SerialNode)
00079 #if defined(HAVE_KOKKOS_TBB)
00080   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::TBBNode)
00081 #endif
00082 #if defined(HAVE_KOKKOS_THREADPOOL)
00083   TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::TPINode)
00084 #endif
00085 #if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_FLOAT)
00086     TPETRA_MATRIXMATRIX_INSTANT(float,int,int,Kokkos::ThrustGPUNode)
00087 #endif
00088 #endif // float
00089 #if defined(HAVE_TPETRA_INST_COMPLEX_DOUBLE)
00090   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::SerialNode)
00091 #if defined(HAVE_KOKKOS_TBB)
00092   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::TBBNode)
00093 #endif
00094 #if defined(HAVE_KOKKOS_THREADPOOL)
00095     TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,int,Kokkos::TPINode)
00096 #endif
00097 // no complex on GPU support for now
00098 //#if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_DOUBLE)
00099 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::ThrustGPUNode)
00100 //#endif
00101 #endif // complex double
00102 #if defined(HAVE_TPETRA_INST_COMPLEX_FLOAT)
00103   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::SerialNode)
00104 #if defined(HAVE_KOKKOS_TBB)
00105   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::TBBNode)
00106 #endif
00107 #if defined(HAVE_KOKKOS_THREADPOOL)
00108     TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,int,Kokkos::TPINode)
00109 #endif
00110 // no complex on GPU support for now
00111 //#if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_DOUBLE)
00112 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,int,Kokkos::ThrustGPUNode)
00113 //#endif
00114 #endif // complex float
00115 
00116 
00117 #ifdef HAVE_TPETRA_INST_INT_LONG
00118 #if defined(HAVE_TPETRA_INST_DOUBLE)
00119   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::SerialNode)
00120 #if defined(HAVE_KOKKOS_TBB)
00121   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::TBBNode)
00122 #endif
00123 #if defined(HAVE_KOKKOS_THREADPOOL)
00124   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::TPINode)
00125 #endif
00126 #if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_DOUBLE)
00127   TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::ThrustGPUNode)
00128 #endif
00129 #endif // double
00130 #if defined(HAVE_TPETRA_INST_FLOAT)
00131   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::SerialNode)
00132 #if defined(HAVE_KOKKOS_TBB)
00133   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::TBBNode)
00134 #endif
00135 #if defined(HAVE_KOKKOS_THREADPOOL)
00136   TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::TPINode)
00137 #endif
00138 #if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_FLOAT)
00139     TPETRA_MATRIXMATRIX_INSTANT(float,int,long,Kokkos::ThrustGPUNode)
00140 #endif
00141 #endif // float
00142 #if defined(HAVE_TPETRA_INST_COMPLEX_DOUBLE)
00143   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::SerialNode)
00144 #if defined(HAVE_KOKKOS_TBB)
00145   TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::TBBNode)
00146 #endif
00147 #if defined(HAVE_KOKKOS_THREADPOOL)
00148     TPETRA_MATRIXMATRIX_INSTANT(std::complex<double>,int,long,Kokkos::TPINode)
00149 #endif
00150 // no complex on GPU support for now
00151 //#if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_DOUBLE)
00152 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::ThrustGPUNode)
00153 //#endif
00154 #endif // complex double
00155 #if defined(HAVE_TPETRA_INST_COMPLEX_FLOAT)
00156   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::SerialNode)
00157 #if defined(HAVE_KOKKOS_TBB)
00158   TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::TBBNode)
00159 #endif
00160 #if defined(HAVE_KOKKOS_THREADPOOL)
00161     TPETRA_MATRIXMATRIX_INSTANT(std::complex<float>,int,long,Kokkos::TPINode)
00162 #endif
00163 // no complex on GPU support for now
00164 //#if defined(HAVE_KOKKOS_THRUST) && defined(HAVE_KOKKOS_CUDA_DOUBLE)
00165 //    TPETRA_MATRIXMATRIX_INSTANT(double,int,long,Kokkos::ThrustGPUNode)
00166 //#endif
00167 #endif // complex float
00168 #endif // <int,long>
00169 
00170 
00171 } // namespace Tpetra
00172 
00173 #endif // HAVE_TPETRA_EXPLICIT_INSTANTIATION
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines