|
MADNESS 0.10.1
|
#include <macrotaskq.h>
Public Types | |
| enum | StoragePolicy { StoreFunction , StorePointerToFunction , StoreFunctionViaPointer } |
Public Member Functions | |
| bool | check_consistency () const |
| make sure the policies are consistent | |
| void | from_vector_of_strings (const std::vector< std::string > &vec) |
| set policy from a vector of strings, assuming the order is storage policy, cloud distribution policy, ptr target distribution policy | |
| nlohmann::json | to_json () const |
Static Public Member Functions | |
| static std::vector< std::string > | get_all_preset_names () |
| static std::vector< MacroTaskInfo > | get_all_presets () |
| helper function to return all presets | |
| static StoragePolicy | policy_to_string (const std::string policy) |
| static MacroTaskInfo | preset (const std::string name) |
| static Cloud::StoragePolicy | to_cloud_storage_policy (MacroTaskInfo::StoragePolicy policy) |
| given the MacroTask's storage policy return the corresponding Cloud storage policy | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const MacroTaskInfo policy) |
| std::ostream & | operator<< (std::ostream &os, const StoragePolicy sp) |
| std::string | to_string (const MacroTaskInfo::StoragePolicy sp) |
|
inline |
make sure the policies are consistent
References cloud_distribution_policy, madness::Distributed, ptr_target_distribution_policy, madness::RankReplicated, storage_policy, StoreFunction, StoreFunctionViaPointer, and StorePointerToFunction.
Referenced by madness::MacroTaskQ::MacroTaskQ().
|
inline |
set policy from a vector of strings, assuming the order is storage policy, cloud distribution policy, ptr target distribution policy
References cloud_distribution_policy, madness::Distributed, MADNESS_CHECK_THROW, MADNESS_EXCEPTION, madness::NodeReplicated, madness::print(), ptr_target_distribution_policy, madness::RankReplicated, storage_policy, StoreFunction, StoreFunctionViaPointer, StorePointerToFunction, and madness::vec().
Referenced by madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::set_macro_task_info().
|
inlinestatic |
Referenced by get_all_presets(), test_deferred(), and test_immediate().
|
inlinestatic |
helper function to return all presets
References get_all_preset_names(), madness::name(), and preset().
|
inlinestatic |
References MADNESS_EXCEPTION, StoreFunction, StoreFunctionViaPointer, StorePointerToFunction, and madness::commandlineparser::tolower().
Referenced by MemoryParameters::cloud_storage().
|
inlinestatic |
return some preset policies
References cloud_distribution_policy, madness::Distributed, MADNESS_EXCEPTION, madness::name(), madness::NodeReplicated, ptr_target_distribution_policy, madness::RankReplicated, storage_policy, StoreFunction, StoreFunctionViaPointer, and StorePointerToFunction.
Referenced by madness::SCF::apply_potential(), get_all_presets(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::K_macrotask_efficient(), test_2d_partitioning(), test_deferred(), and test_twice().
|
inlinestatic |
given the MacroTask's storage policy return the corresponding Cloud storage policy
References MADNESS_EXCEPTION, StoreFunction, madness::Cloud::StoreFunction, madness::Cloud::StoreFunctionPointer, StoreFunctionViaPointer, and StorePointerToFunction.
Referenced by madness::MacroTask< taskT >::MacroTask(), madness::MacroTaskQ::MacroTaskQ(), and test_replication_policy().
|
inline |
References cloud_distribution_policy, ptr_target_distribution_policy, storage_policy, and to_string.
Referenced by madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::gather_statistics().
|
friend |
|
friend |
|
friend |
Referenced by to_json().
| DistributionType madness::MacroTaskInfo::cloud_distribution_policy =DistributionType::RankReplicated |
| DistributionType madness::MacroTaskInfo::ptr_target_distribution_policy =DistributionType::NodeReplicated |
| StoragePolicy madness::MacroTaskInfo::storage_policy =StoreFunctionViaPointer |
Referenced by madness::MacroTaskQ::MacroTaskQ(), check_consistency(), madness::MacroTask< taskT >::MacroTaskInternal::copy_operands_into_subworld(), from_vector_of_strings(), main(), preset(), madness::MacroTaskQ::replicate_inputs(), madness::MacroTaskQFactory::set_storage_policy(), test_replication_policy(), and to_json().