You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: affinity/cpp-20/d0796r2.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,27 @@ This feature could be easily scaled to heterogeneous and distributed systems, as
170
170
171
171
In this paper we propose an interface for querying and representing the execution resources within a system, queurying the relative affinity metric between those execution resources, and then using those execution resources to allocate memory and execute work with affinity to the underlying hardware. The interface described in this paper builds on the existing initerface for executors and execution contexts defined in the executors proposal [[22]][p0443r4].
172
172
173
+
### Terminology
174
+
175
+
An **execution agent** executes work, typically implemented by a *callable*,
176
+
on an **execution resource** of a given **execution architecture**.
177
+
An **execution context** manages a set of execution agents on an
178
+
execution resource.
179
+
An **executor** submits work to an execution context.
180
+
More that one executor may submit work to an execution context.
181
+
More than on execution context may manage execution agents
182
+
on an execution resource.
183
+
184
+
> [*Note:* The execution context terminology used here
185
+
and in the Networking TS [[33]][networking-ts] deviate from the
186
+
traditional *context of execution* usage that refers
187
+
to the state of a single executing callable; *e.g.*,
188
+
program counter, registers, stack frame. *--end note*]
189
+
190
+
The **concurrency** of an execution resource is the maximum number
191
+
of execution agents that could make concurrent forward progress
192
+
on that execution resource.
193
+
173
194
### Execution resources
174
195
175
196
An `execution_resource` is a light weight structure which acts as an identifier to particular piece of hardware within a system. It can be queried for whether it can allocate memory via `can_place_memory` and whether it can execute work via `can_place_agents`, and for it's name via `name`. An `execution_resource` can also represent other `execution_resource`s, these are refered to as being *members of* that `execution_resource` and can be queried via `resources`. Additionally the `execution_resource` which another is a *member of* can be queried vis `member_of`. An `execution_resource` can also be queried for the concurrency it can provide; the total number of *threads of execution* supported by that *execution_resource* and all resources it represents.
@@ -647,3 +668,7 @@ The current proposal requires that all `execution_resource`s are initialised bef
0 commit comments