MADNESS 0.10.1
|
#include <macrotaskq.h>
Classes | |
struct | io_redirect |
RAII class to redirect cout to a file. More... | |
struct | is_vector |
struct | is_vector< std::vector< Q > > |
class | MacroTaskInternal |
Public Member Functions | |
MacroTask (World &world, taskT &task, std::shared_ptr< MacroTaskQ > taskq_ptr=0) | |
constructor takes the actual task | |
template<typename ... Ts> | |
resultT | operator() (const Ts &... args) |
this mimicks the original call to the task functor, called from the universe | |
void | set_debug (const bool value) |
Public Attributes | |
std::shared_ptr< MacroTaskQ > | taskq_ptr |
World & | world |
Private Types | |
typedef taskT::argtupleT | argtupleT |
using | partitionT = MacroTaskPartitioner::partitionT |
typedef Cloud::recordlistT | recordlistT |
typedef taskT::resultT | resultT |
Private Member Functions | |
recordlistT | prepare_output_records (Cloud &cloud, resultT &result) |
store pointers to the result WorldObject in the cloud and return the recordlist | |
Private Attributes | |
bool | debug =false |
taskT | task |
|
private |
|
private |
|
private |
|
private |
|
inline |
constructor takes the actual task
References madness::World::id(), MADNESS_CHECK, madness::MacroTask< taskT >::taskq_ptr, and madness::MacroTask< taskT >::world.
|
inline |
this mimicks the original call to the task functor, called from the universe
store all input to the cloud, create output Function<T,NDIM> in the universe, create the batched task and shove it into the taskq. Possibly execute the taskq.
References madness::MacroTask< taskT >::debug, madness::MacroTask< taskT >::prepare_output_records(), madness::World::size(), madness::MacroTask< taskT >::task, madness::MacroTask< taskT >::taskq_ptr, and madness::MacroTask< taskT >::world.
|
inlineprivate |
store pointers to the result WorldObject in the cloud and return the recordlist
References madness::MacroTask< taskT >::debug, madness::get_impl(), MADNESS_EXCEPTION, madness::print(), madness::Cloud::store(), v, and madness::MacroTask< taskT >::world.
Referenced by madness::MacroTask< taskT >::operator()().
|
inline |
References madness::MacroTask< taskT >::debug.
Referenced by test_task1().
|
private |
|
private |
Referenced by madness::MacroTask< taskT >::operator()().
std::shared_ptr<MacroTaskQ> madness::MacroTask< taskT >::taskq_ptr |
World& madness::MacroTask< taskT >::world |