MADNESS 0.10.1
|
#include <macrotaskq.h>
Classes | |
struct | is_vector |
struct | is_vector< std::vector< Q > > |
class | MacroTaskInternal |
Public Member Functions | |
MacroTask (World &world, taskT &task) | |
constructor takes the task, but no arguments to the task | |
MacroTask (World &world, taskT &task, MacroTaskInfo::StoragePolicy storage_policy) | |
constructor takes task and the storage policy, but no arguments to the task | |
MacroTask (World &world, taskT &task, std::shared_ptr< MacroTaskQ > taskq_ptr) | |
constructor takes the task, | |
template<typename ... Ts> | |
resultT | operator() (const Ts &... args) |
this mimicks the original call to the task functor, called from the universe | |
MacroTask & | 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 |
bool | immediate_execution =false |
taskT | task |
|
private |
|
private |
|
private |
|
private |
|
inlineexplicit |
constructor takes the task, but no arguments to the task
References madness::MacroTask< taskT >::immediate_execution.
|
inlineexplicit |
constructor takes task and the storage policy, but no arguments to the task
References madness::MacroTask< taskT >::immediate_execution.
|
inlineexplicit |
|
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 >::immediate_execution, madness::MacroTask< taskT >::prepare_output_records(), madness::print(), madness::World::rank(), 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_immediate(), and test_task1().
|
private |
|
private |
|
private |
Referenced by madness::MacroTask< taskT >::operator()().
std::shared_ptr<MacroTaskQ> madness::MacroTask< taskT >::taskq_ptr |
Referenced by madness::MacroTask< taskT >::operator()(), and madness::CC2::solve_mp2_coupled().
World& madness::MacroTask< taskT >::world |