Skip to content

Commit 6c2960b

Browse files
neon60lpaoletti
andcommitted
Update docs/understand/programming_model.rst
Co-authored-by: Leo Paoletti <[email protected]>
1 parent cefca2c commit 6c2960b

19 files changed

+933
-373
lines changed

.wordlist.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ AXPY
99
asm
1010
Asynchronicity
1111
Asynchrony
12+
asynchrony
1213
backtrace
1314
bfloat
1415
Bitcode
@@ -93,7 +94,6 @@ iteratively
9394
Lapack
9495
latencies
9596
libc
96-
libhipcxx
9797
libstdc
9898
lifecycle
9999
linearizing
@@ -176,6 +176,7 @@ ULP
176176
ULPs
177177
unintuitive
178178
UMM
179+
uncoalesced
179180
unmap
180181
unmapped
181182
unmapping

docs/data/understand/programming_model/cpu-gpu-comparison.drawio

+181
Large diffs are not rendered by default.

docs/data/understand/programming_model/cpu-gpu-comparison.svg

+1
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<mxfile host="65bd71144e" scale="1" border="20">
2+
<diagram name="Host-Device Data Flow" id="host-device-flow">
3+
<mxGraphModel dx="739" dy="990" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="600" pageHeight="300" background="#5E5B61" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0"/>
6+
<mxCell id="1" parent="0"/>
7+
<mxCell id="title" value="Host-Device Data Flow" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
8+
<mxGeometry x="200" y="10" width="200" height="30" as="geometry"/>
9+
</mxCell>
10+
<mxCell id="host-box" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#585556;strokeColor=#FFFFFF;strokeWidth=2;" parent="1" vertex="1">
11+
<mxGeometry x="50" y="70" width="150" height="180" as="geometry"/>
12+
</mxCell>
13+
<mxCell id="host-label" value="Host (CPU)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
14+
<mxGeometry x="75" y="80" width="100" height="30" as="geometry"/>
15+
</mxCell>
16+
<mxCell id="device-box" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#C23555;strokeColor=#FFFFFF;strokeWidth=2;" parent="1" vertex="1">
17+
<mxGeometry x="400" y="70" width="150" height="180" as="geometry"/>
18+
</mxCell>
19+
<mxCell id="device-label" value="Device (GPU)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
20+
<mxGeometry x="425" y="80" width="100" height="30" as="geometry"/>
21+
</mxCell>
22+
<mxCell id="arrow-1" value="" style="endArrow=classic;html=1;strokeColor=#FFFFFF;strokeWidth=2;" parent="1" edge="1">
23+
<mxGeometry width="50" height="50" relative="1" as="geometry">
24+
<mxPoint x="200" y="120" as="sourcePoint"/>
25+
<mxPoint x="400" y="120" as="targetPoint"/>
26+
</mxGeometry>
27+
</mxCell>
28+
<mxCell id="label-1" value="1. Initialize" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
29+
<mxGeometry x="250" y="100" width="100" height="20" as="geometry"/>
30+
</mxCell>
31+
<mxCell id="arrow-2" value="" style="endArrow=classic;html=1;strokeColor=#FFFFFF;strokeWidth=2;" parent="1" edge="1">
32+
<mxGeometry width="50" height="50" relative="1" as="geometry">
33+
<mxPoint x="200" y="160" as="sourcePoint"/>
34+
<mxPoint x="400" y="160" as="targetPoint"/>
35+
</mxGeometry>
36+
</mxCell>
37+
<mxCell id="label-2" value="2. Transfer Data" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
38+
<mxGeometry x="250" y="140" width="100" height="20" as="geometry"/>
39+
</mxCell>
40+
<mxCell id="arrow-3" value="" style="endArrow=classic;html=1;strokeColor=#FFFFFF;strokeWidth=2;" parent="1" edge="1">
41+
<mxGeometry width="50" height="50" relative="1" as="geometry">
42+
<mxPoint x="200" y="200" as="sourcePoint"/>
43+
<mxPoint x="400" y="200" as="targetPoint"/>
44+
</mxGeometry>
45+
</mxCell>
46+
<mxCell id="label-3" value="3. Execute Kernel" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
47+
<mxGeometry x="250" y="180" width="100" height="20" as="geometry"/>
48+
</mxCell>
49+
<mxCell id="arrow-4" value="" style="endArrow=classic;html=1;strokeColor=#FFFFFF;strokeWidth=2;" parent="1" edge="1">
50+
<mxGeometry width="50" height="50" relative="1" as="geometry">
51+
<mxPoint x="400" y="240" as="sourcePoint"/>
52+
<mxPoint x="200" y="240" as="targetPoint"/>
53+
</mxGeometry>
54+
</mxCell>
55+
<mxCell id="label-4" value="4. Return Results" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontFamily=Arial;fontColor=#FFFFFF;" parent="1" vertex="1">
56+
<mxGeometry x="250" y="220" width="100" height="20" as="geometry"/>
57+
</mxCell>
58+
</root>
59+
</mxGraphModel>
60+
</diagram>
61+
</mxfile>
Loading

0 commit comments

Comments
 (0)