legate::mapping::ProxyInstanceMappingPolicy#
-
class ProxyInstanceMappingPolicy#
An object that models the InstanceMappingPolicy class for use in specifying mapping decisions in a
TaskConfigobject.This class is nearly identical to InstanceMappingPolicy except that the
targetmember is astd::optionalinstead of aStoreTarget. Settingtargettostd::nulloptindicates that theInstanceMappingPolicythat is synthesized during mapping-time should take the first available memory type from the given options. Iftargetis set to a concreteStoreTarget, then this store target is always chosen.Public Functions
- inline ProxyInstanceMappingPolicy &&with_target(
- std::optional<StoreTarget> tgt
Changes the store target.
- Parameters:
tgt – A new store target or
std::nulloptif the target should be chosen at mapping-time.- Returns:
This instance mapping policy
- inline ProxyInstanceMappingPolicy &&with_allocation_policy(
- AllocPolicy alloc
Changes the allocation policy.
- Parameters:
alloc – A new allocation policy
- Returns:
This instance mapping policy
- inline ProxyInstanceMappingPolicy &&with_ordering(
- std::optional<DimOrdering> ord
Changes the dimension ordering.
- Parameters:
ord – A new dimension ordering, or
std::nulloptif the dimension ordering should be chosen at mapping-time. SeeInstanceMappingPolicy::orderingfor more information.- Returns:
This instance mapping policy
-
inline ProxyInstanceMappingPolicy &&with_exact(bool value) &&#
Changes the value of
exact- Parameters:
value – A new value for the
exactfield- Returns:
This instance mapping policy
-
inline ProxyInstanceMappingPolicy &&with_redundant(bool value) &&#
Changes the value of
redundant- Parameters:
value – A new value for the
redundantfield- Returns:
This instance mapping policy