YOrch
1.0.0
Loading...
Searching...
No Matches
policy.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
#include <limits>
5
6
namespace
yorch::detail
{
7
17
enum class
slot_logical_policy
:
unsigned
char
{
18
none
,
19
maybe_payload
,
20
must_payload
,
21
};
22
32
enum class
slot_physical_policy
:
unsigned
char
{
33
none
,
34
maybe_payload
,
35
must_payload
,
36
};
37
46
enum class
output_storage_mode
:
unsigned
char
{
47
none
,
48
owned
,
49
forwarded_prev
,
50
};
51
59
inline
constexpr
std::size_t
no_physical_slot
= std::numeric_limits<std::size_t>::max();
60
61
}
// namespace yorch::detail
yorch::detail
Definition
adapters.hpp:48
yorch::detail::no_physical_slot
constexpr std::size_t no_physical_slot
Sentinel physical slot index meaning "this node has no storage".
Definition
policy.hpp:59
yorch::detail::output_storage_mode
output_storage_mode
Describes how a node's logical output is backed at runtime.
Definition
policy.hpp:46
yorch::detail::output_storage_mode::owned
@ owned
yorch::detail::output_storage_mode::forwarded_prev
@ forwarded_prev
yorch::detail::prev_access_kind::none
@ none
yorch::detail::slot_physical_policy
slot_physical_policy
Storage-level policy for a physical slot after layout selection.
Definition
policy.hpp:32
yorch::detail::slot_logical_policy
slot_logical_policy
Node-local slot semantics inferred from a task's result protocol.
Definition
policy.hpp:17
yorch::detail::slot_logical_policy::maybe_payload
@ maybe_payload
yorch::detail::slot_logical_policy::must_payload
@ must_payload
include
yorch
detail
slots
policy.hpp
Generated by
1.9.8