Skip to content
Snippets Groups Projects
Commit b114a8a9 authored by Georgiana Mania's avatar Georgiana Mania
Browse files

improve mpi_max drawing

parent 433daacd
No related branches found
No related tags found
1 merge request!72Draft: Compute devices lecture
......@@ -128,7 +128,7 @@ If we want to scale beyond one node, what do we need in our example?
```C++
int MPI_Reduce(void* sendbuf, void* recvbuf, int count,
MPI_Datatype datatype,
MPI_Op op, // MPI_SUM, MPI_MAX, ...
MPI_Op op, // MPI_MAX, ...
int root,
MPI_Comm comm)
```
......@@ -136,18 +136,10 @@ int MPI_Reduce(void* sendbuf, void* recvbuf, int count,
<br>
:::fragment
![](static/reduce.jpg){.nostretch fig-align="center" width="70%"}
:::{.info .smaller}
MPI_MAX for 4 ranks and count=2
:::
![](static/reduce.svg){.nostretch fig-align="center" width="50%"}
:::
## Hands-on Session! {background-color=var(--dark-bg-color) .leftalign}
1. Get the example code from [TODO- new link to MPI code]
......
lectures/hardware/static/reduce.jpg

37.3 KiB

This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment