43 #ifndef RTOPPACK_SPMD_APPLY_OP_DECL_HPP 44 #define RTOPPACK_SPMD_APPLY_OP_DECL_HPP 46 #include "RTOpPack_RTOpT.hpp" 47 #include "Teuchos_Serializer.hpp" 48 #include "Teuchos_ReductionOp.hpp" 51 namespace Teuchos {
template<
typename Ordinal>
class Comm; }
55 #define RTOPPACK_ENABLE_SHOW_DUMP 59 # define RTOPPACK_ENABLE_SHOW_DUMP 66 #ifdef RTOPPACK_ENABLE_SHOW_DUMP 67 extern bool show_spmd_apply_op_dump;
68 #endif // RTOPPACK_ENABLE_SHOW_DUMP 76 template<
class PrimitiveScalar>
88 template<
class Scalar>
90 const RTOpT<Scalar> &op,
94 const ReductTarget &reduct_obj,
103 template<
class Scalar>
105 const RTOpT<Scalar> &op,
109 const char reduct_obj_ext[],
110 ReductTarget *reduct_obj
118 template<
class Scalar>
128 index_type getBufferSize(
const index_type count)
const;
131 const index_type count
133 ,
const index_type bytes
137 Teuchos::RCP<ReductTarget> createObj()
const;
140 const index_type bytes
141 ,
const char charBuffer[]
142 ,
const index_type count
147 Teuchos::RCP<const RTOpT<Scalar> > op_;
151 int reduct_obj_ext_size_;
162 template<
class Scalar>
164 :
public Teuchos::ReferenceTypeReductionOp<Teuchos_Ordinal,ReductTarget>
183 Teuchos::RCP<const RTOpT<Scalar> > op_;
197 template<
class Scalar>
198 void SPMD_all_reduce(
199 const Teuchos::Comm<index_type> *comm
214 template<
class Scalar>
216 const Teuchos::Comm<index_type> *comm
220 ,
const int num_targ_vecs
233 template<
class Scalar>
235 const Teuchos::Comm<index_type> *comm
238 ,
const int num_multi_vecs
240 ,
const int num_targ_multi_vecs
253 template<
class Scalar>
255 const Teuchos::Comm<index_type> *comm
260 ,
const int num_targ_vecs
269 #endif // RTOPPACK_SPMD_APPLY_OP_DECL_HPP
ReductionOp subclass for ReductTarget objects.
Serializer subclass for ReductTarget objects.