3#ifndef STAN_MATH_PRIM_FUNCTOR_MPI_COMMAND_HPP
4#define STAN_MATH_PRIM_FUNCTOR_MPI_COMMAND_HPP
6#include <boost/serialization/serialization.hpp>
7#include <boost/serialization/access.hpp>
8#include <boost/serialization/base_object.hpp>
9#include <boost/serialization/export.hpp>
36 template <
class Archive>
37 void serialize(Archive& ar,
const unsigned int version) {}
39 virtual void run()
const = 0;
47#define STAN_REGISTER_MPI_COMMAND(command) \
48 BOOST_CLASS_IMPLEMENTATION(command, \
49 boost::serialization::object_serializable) \
50 BOOST_CLASS_EXPORT(command) \
51 BOOST_CLASS_TRACKING(command, boost::serialization::track_never)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
void serialize(Archive &ar, const unsigned int version)
friend class boost::serialization::access
virtual void run() const =0
A MPI command object is used to execute code on worker nodes.