Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91062126
collectives.tex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 7, 11:29
Size
2 KB
Mime Type
text/x-tex
Expires
Sat, Nov 9, 11:29 (2 d)
Engine
blob
Format
Raw Data
Handle
22187214
Attached To
rPHPCCOURSE phpc-course
collectives.tex
View Options
% Slide 152
\begin
{
tikzpicture
}
[scale = 0.4, every node/.style=
{
scale=0.6
}
]
\begin
{
scope
}
\begin
{
scope
}
\node
[anchor = west]
(Data) at (0, 4.3)
{
data
}
;
\node
[anchor = east, rotate = 90]
(Proc) at (-0.3, 4)
{
processes
}
;
\draw
[->]
(Data) -- (3, 4.3);
\draw
[->]
(Proc) -- (-0.3, 1);
\draw
[step = 1cm]
(0,0) grid (4,4);
\node
at (0.5, 3.5)
{
$
A_
0
$
}
;
\end
{
scope
}
\draw
[->, very thick]
(4.5, 2) -- node[midway, above]
{
broadcast
}
(6.5, 2);
\begin
{
scope
}
[xshift = 7cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\y
in
{
0.5, 1.5, ..., 3.5
}
\node
at (0.5, 4 -
\y
)
{
$
A_
0
$
}
;
\end
{
scope
}
\begin
{
scope
}
[yshift = -6cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\x
[count =
\i
from 0] in
{
0.5, 1.5, ..., 3.5
}
\node
at (
\x
, 3.5)
{
$
A_
\i
$
}
;
\end
{
scope
}
\draw
[->, very thick]
(4.5, -3.8) -- node[midway, above]
{
scatter
}
(6.5, -3.8);
\draw
[<-, very thick]
(4.5, -4.2) -- node[midway, below]
{
gather
}
(6.5, -4.2);
\begin
{
scope
}
[yshift = -6cm, xshift = 7cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\x
[count =
\i
from 0] in
{
0.5, 1.5, ..., 3.5
}
\node
at (0.5, 4 -
\x
)
{
$
A_
\i
$
}
;
\end
{
scope
}
\end
{
scope
}
\begin
{
scope
}
[xshift = 15cm]
\begin
{
scope
}
[yshift = 0cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\y
/
\l
in
{
0.5/A, 1.5/B, 2.5/C, 3.5/D
}
\node
at (0.5, 4 -
\y
)
{
$
\l
_
0
$
}
;
\end
{
scope
}
\draw
[->, very thick]
(4.5, 2) -- node[midway, above]
{
allgather
}
(6.5, 2);
\begin
{
scope
}
[yshift = 0cm, xshift = 7cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\y
in
{
0.5, 1.5, ..., 3.5
}
{
\foreach
\x
/
\l
in
{
0.5/A, 1.5/B, 2.5/C, 3.5/D
}
{
\node
at (
\x
, 4 -
\y
)
{
$
\l
_
0
$
}
;
}
}
\end
{
scope
}
\begin
{
scope
}
[yshift = -6cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\y
/
\l
in
{
0.5/A, 1.5/B, 2.5/C, 3.5/D
}
{
\foreach
\x
[count = \i from 0]
in
{
0.5, 1.5, ..., 3.5
}
{
\node
at (
\x
, 4 -
\y
)
{
$
\l
_
\i
$
}
;
}
}
\end
{
scope
}
\draw
[->, very thick]
(4.5, -4) -- node[midway, above, align = center]
{
complete
\\
exchange
}
(6.5, -4);
\begin
{
scope
}
[yshift = -6cm, xshift = 7cm]
\draw
[step = 1cm]
(0,0) grid (4,4);
\foreach
\x
/
\l
in
{
0.5/A, 1.5/B, 2.5/C, 3.5/D
}
{
\foreach
\y
[count = \i from 0]
in
{
0.5, 1.5, ..., 3.5
}
{
\node
at (
\x
, 4 -
\y
)
{
$
\l
_
\i
$
}
;
}
}
\end
{
scope
}
\end
{
scope
}
\end
{
tikzpicture
}
Event Timeline
Log In to Comment