MADNESS 0.10.1
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
madness::MacroTaskInfo Struct Reference

#include <macrotaskq.h>

Public Types

enum  StoragePolicy { StoreFunction , StorePointerToFunction , StoreFunctionViaPointer }
 

Static Public Member Functions

static MacroTaskInfo::StoragePolicy get_default ()
 
static void set_default (MacroTaskInfo::StoragePolicy sp)
 
static Cloud::StoragePolicy to_cloud_storage_policy (MacroTaskInfo::StoragePolicy policy)
 given the MacroTask's storage policy return the corresponding Cloud storage policy
 

Static Public Attributes

static MacroTaskInfo::StoragePolicy default_storage_policy
 declaration here, definition in mra1.cc
 

Member Enumeration Documentation

◆ StoragePolicy

Enumerator
StoreFunction 

store a madness function in the cloud – can have a large memory impact

StorePointerToFunction 

store the pointer to the function in the cloud, the actual function lives in the universe and its coefficients can be copied to the subworlds (e.g. by macrotaskq) when needed. The task itself is responsible for handling data movement

StoreFunctionViaPointer 

coefficients to the subworlds when the task is started. This is the default policy.

store a pointer to the function in the cloud, but macrotaskq will move the

Member Function Documentation

◆ get_default()

static MacroTaskInfo::StoragePolicy madness::MacroTaskInfo::get_default ( )
inlinestatic

◆ set_default()

static void madness::MacroTaskInfo::set_default ( MacroTaskInfo::StoragePolicy  sp)
inlinestatic

References default_storage_policy.

Referenced by main().

◆ to_cloud_storage_policy()

static Cloud::StoragePolicy madness::MacroTaskInfo::to_cloud_storage_policy ( MacroTaskInfo::StoragePolicy  policy)
inlinestatic

Member Data Documentation

◆ default_storage_policy

MacroTaskInfo::StoragePolicy madness::MacroTaskInfo::default_storage_policy
static

declaration here, definition in mra1.cc

Referenced by get_default(), and set_default().


The documentation for this struct was generated from the following file: