|
MADNESS 0.10.1
|
#include <macrotaskq.h>


Public Member Functions | |
| MacroTaskOperationBase () | |
| MacroTaskOperationBase (const std::string name) | |
| virtual | ~MacroTaskOperationBase () |
| virtual bool | accumulates_own_output () const |
| virtual void | cleanup () |
| release whatever the task kept across its batches, called once the queue has run | |
| virtual bool | handles_own_data_movement () const |
| true if the task moves its operand coefficients into the subworld itself | |
| virtual long | owner_hint (const Batch &, const long) const |
| which subworld should run this batch; -1 leaves the choice to the queue | |
Public Attributes | |
| Batch | batch |
| Cloud * | cloud_ptr =0 |
| std::string | name ="unknown_task" |
| std::shared_ptr< MacroTaskPartitioner > | partitioner =0 |
| World * | subworld_ptr =0 |
|
inline |
References madness::_(), batch, and partitioner.
Referenced by MicroTask< T, NDIM >::MicroTask(), MicroTask1::MicroTask1(), and MicroTaskPriority::MicroTaskPriority().
|
inline |
References madness::_(), batch, name, and partitioner.
|
inlinevirtual |
|
inlinevirtual |
true if the task accumulates its own results and drains them in finalize_stage2, instead of the queue moving every batch result into the universe result itself
Reimplemented in madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple.
|
inlinevirtual |
release whatever the task kept across its batches, called once the queue has run
A task class that caches operands between its batches has to keep them in static state, since each batch is a separate task object. This is where that state must be dropped: it still refers to the subworld the batches were built in, and that subworld is destroyed after the queue finishes. Clearing it later means destroying function implementations whose world is already gone.
Reimplemented in madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple.
|
inlinevirtual |
true if the task moves its operand coefficients into the subworld itself
Reimplemented in madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple.
|
inlinevirtual |
which subworld should run this batch; -1 leaves the choice to the queue
Reads whatever assignment prepare_owner_assignment computed, so the two go together: one decides the mapping for the whole partition, this one applies it per batch.
Reimplemented in madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple, and OwnedTask.
| Batch madness::MacroTaskOperationBase::batch |
Referenced by MacroTaskOperationBase(), MacroTaskOperationBase(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::MacroTaskPartitionerExchange::compute_priority(), madness::MacroTaskConstantPart::compute_priority(), madness::MacroTaskIteratePair::compute_priority(), MicroTaskPriority::compute_priority(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::MacroTaskPartitionerExchange::do_partitioning(), MicroTaskPartitioner::CustomPartitioner::do_partitioning(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::operator()(), madness::MacroTaskIteratePair::operator()(), madness::MP3::MacroTaskMP3::operator()(), VectorOfScalarTask::operator()(), OwnedTask::owner_hint(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::store_batches(), and madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::touched_result_indices().
| Cloud* madness::MacroTaskOperationBase::cloud_ptr =0 |
set by MacroTaskInternal::run before the task body runs, so a task that moves its own operands (see handles_own_data_movement) can fetch them from the cloud itself
Referenced by madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::operator()(), and madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::sym_pipeline_advance().
| std::string madness::MacroTaskOperationBase::name ="unknown_task" |
Referenced by madness::MacroTaskComputeCorrelationEnergy::MacroTaskComputeCorrelationEnergy(), madness::MacroTaskConstantPart::MacroTaskConstantPart(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::MacroTaskExchangeRow(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::MacroTaskExchangeSimple(), madness::MacroTaskIteratePair::MacroTaskIteratePair(), madness::LRFunctorF12< T, NDIM, LDIM >::MacroTaskLRFInner::MacroTaskLRFInner(), madness::MP3::MacroTaskMP3::MacroTaskMP3(), MacroTaskOperationBase(), madness::MacroTaskSinglesPotentialEx::MacroTaskSinglesPotentialEx(), madness::MacroTaskSinglesPotentialGs::MacroTaskSinglesPotentialGs(), madness::MacroTaskSinglesPotentialEx::allocator(), madness::MacroTaskSinglesPotentialGs::allocator(), madness::MacroTaskSinglesPotentialEx::operator()(), and madness::MacroTaskSinglesPotentialGs::operator()().
| std::shared_ptr<MacroTaskPartitioner> madness::MacroTaskOperationBase::partitioner =0 |
Referenced by madness::MacroTaskConstantPart::MacroTaskConstantPart(), madness::Coulomb< T, NDIM >::MacroTaskCoulomb::MacroTaskCoulomb(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::MacroTaskExchangeRow(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::MacroTaskExchangeSimple(), madness::MacroTaskIteratePair::MacroTaskIteratePair(), madness::LRFunctorF12< T, NDIM, LDIM >::MacroTaskLRFInner::MacroTaskLRFInner(), madness::MP3::MacroTaskMP3::MacroTaskMP3(), MacroTaskOperationBase(), MacroTaskOperationBase(), madness::MacroTaskSinglesPotentialEx::MacroTaskSinglesPotentialEx(), MicroTaskPartitioner::MicroTaskPartitioner(), MicroTaskPriority::MicroTaskPriority(), madness::MP3::MacroTaskMP3::operator()(), and test_2d_partitioning().
| World* madness::MacroTaskOperationBase::subworld_ptr =0 |