Skip to content

Commit 2abd3fb

Browse files
GordonGordon
authored andcommitted
Issue #41: Separate execution and memory resources.
* Fixes #41 and #42. * Introduce `memory_resource` to represent the memory component of a system topology. * Remove `can_place_memory` and `can_place_agents` from the `execution_resource` as these are no longer required. * Remove `memory_resource` and `allocator` from the `execution_context` as these no longer make sense. * Update the wording to describe how execution resources and memory resources are structured. * Refactor `affinity_query` to be between an `execution_resource` and a `memory_resource`. * Make minor corrections.
1 parent 1fc49ea commit 2abd3fb

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
73.5 KB
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
digraph G {
2+
3+
subgraph cluster_0 {
4+
style=filled;
5+
color=lightgrey;
6+
node [style=filled,color=white];
7+
"Execution Root" -> "CPU0";
8+
"CPU0" -> "Core0";
9+
"CPU0" -> "Core1";
10+
"CPU0" -> "Core2";
11+
"CPU0" -> "Core3";
12+
"Execution Root" -> "CPU1";
13+
"CPU1" -> "Core4";
14+
"CPU1" -> "Core5";
15+
"CPU1" -> "Core6";
16+
"CPU1" -> "Core7";
17+
"Execution Root" -> "GPU";
18+
"GPU" -> "Compute Units [N]";
19+
label = "execution";
20+
}
21+
22+
subgraph cluster_1 {
23+
style=filled;
24+
color=lightgrey;
25+
node [style=filled,color=white];
26+
"Memory Root" -> "NUMA0";
27+
"Memory Root" -> "NUMA1";
28+
"Memory Root" -> "GPU Global";
29+
label = "memory";
30+
}
31+
32+
"this_system::discover_topology()" -> "Execution Root" [color="green"];
33+
"Execution Root" -> "Memory Root" [color="blue"];
34+
"CPU0" -> "NUMA0" [color="blue"];
35+
"CPU1" -> "NUMA1" [color="blue"];
36+
"GPU" -> "GPU Global" [color="blue"];
37+
38+
"this_system::discover_topology()" [shape=Mdiamond];
39+
}

0 commit comments

Comments
 (0)