Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CodeVault
training-material
parallel-programming
MPI
Commits
ade124f4
Commit
ade124f4
authored
Jul 03, 2018
by
Jussi Enkovaara
Browse files
Merge branch 'master' of
https://repository.prace-ri.eu/git/jussi.enkovaara/MPI
parents
4043f6b9
78797876
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ade124f4
...
...
@@ -16,25 +16,25 @@ provided.
## Exercises
-
[
Hello world
](
hello-world
)
Simplest possible MPI program (C, Fortran and
Python versions). Level:
*basic*
Python versions). Level:
*
*basic*
*
-
[
Message exchange
](
message-exchange
)
Simple point-to-point communication
(C, Fortran and Python versions). Level:
*basic*
(C, Fortran and Python versions). Level:
*
*basic*
*
-
[
Message chain
](
message-chain
)
Point-to-point communication in one
dimensional aperiodic chain. (C, Fortran and Python versions).
Level:
*intermediate*
Level:
*
*intermediate*
*
-
[
Collective communciation
](
collectives
)
Basic collective communication
patterns (C, Fortran and Python versions). Level:
*basic/intermediate*
patterns (C, Fortran and Python versions). Level:
*
*basic/intermediate*
*
-
[
Parallel I/O
](
parallel-io
)
Simple parallel I/O using Posix calls and
MPI I/O (C and Fortran versions). Level:
*basic/intermediate*
MPI I/O (C and Fortran versions). Level:
*
*basic/intermediate*
*
-
[
User defined datatypes
](
datatypes
)
Communication of non-uniform data using
user defined datatypes (C, Fortran and Python versions).
Level:
*intermediate/advanced*
Level:
*
*intermediate/advanced*
*
## Examples
-
[
Heat equation
](
heat-equation
)
A two dimensional heat equation solver which
is parallelized with MPI. The code features non-blocking point-to-point
communication, user defined datatypes, and parallel I/O with MPI I/O
(C, Fortran and Python versions). Level:
*advanced*
(C, Fortran and Python versions). Level:
*
*advanced*
*
## How to contribute
...
...
message-chain/README.md
View file @
ade124f4
...
...
@@ -32,9 +32,9 @@ tasks (e.g. 2, 4, 8, 16, ...). Can you explain the differences to case a)?
c) Try to simplify the code by employing the
`MPI_PROC_NULL`
in treating the
special cases of the first and last task in the chain.
d) Rewrite the program using non-blocking communication (MPI_Isend and
MPI_Irecv).
d) Rewrite the program using non-blocking communication (
`
MPI_Isend
`
and
`
MPI_Irecv
`
).
c) Rewrite the program using persistent communication operations
(MPI_Send_init, MPI_Recv_init, etc.).
(
`
MPI_Send_init
`
,
`
MPI_Recv_init
`
, etc.).
parallel-io/README.md
View file @
ade124f4
## Parallel I/O
with Posix
## Parallel I/O
a) Write data from all MPI tasks to a single file using the spokesman
strategy. Gather data to a single MPI task and write it to a file. The
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment