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 More... | |
template<typename ... Ts> | |
resultT | operator() (const Ts &... args) |
this mimicks the original call to the task functor, called from the universe More... | |
void | set_debug (const bool value) |
void | set_name (const std::string name1) |
set a name for this task for debugging and output naming More... | |
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 the result WorldObject in the cloud and return the recordlist More... | |
Private Attributes | |
bool | debug =false |
std::string | name ="unknown_task" |
taskT | task |
std::shared_ptr< MacroTaskQ > | taskq_ptr |
World & | world |
|
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 >::name, 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 the result WorldObject in the cloud and return the recordlist
References madness::get_impl(), MADNESS_EXCEPTION, madness::Cloud::store(), and madness::MacroTask< taskT >::world.
Referenced by madness::MacroTask< taskT >::operator()().
|
inline |
References madness::MacroTask< taskT >::debug.
Referenced by test_task1().
|
inline |
set a name for this task for debugging and output naming
References madness::MacroTask< taskT >::name.
|
private |
|
private |
Referenced by madness::MacroTask< taskT >::operator()(), and madness::MacroTask< taskT >::set_name().
|
private |
Referenced by madness::MacroTask< taskT >::operator()().
|
private |
Referenced by madness::MacroTask< taskT >::MacroTask(), and madness::MacroTask< taskT >::operator()().
|
private |