NumMeth-22: Beginn MPI I/O
This commit is contained in:
+22
-3
@@ -6800,7 +6800,7 @@ Value for money!
|
||||
|
||||
\subsection{Independent jobs}
|
||||
\begin{center}
|
||||
\pgf[width=0.85\textwidth]{fig_chapter10/independent}
|
||||
\pgfimage[width=0.85\textwidth]{fig_chapter10/independent}
|
||||
\end{center}
|
||||
|
||||
Simplest parallelization:
|
||||
@@ -6953,8 +6953,9 @@ This can be discretized to
|
||||
(This is a not too good numerical scheme, but anyway\dots)\\
|
||||
We will assume periodic boundaries
|
||||
|
||||
Implementation on one CPU
|
||||
\pgfimage[width=\textwidth]{fig_chapter10/burgers1}
|
||||
Implementation on one CPU\\
|
||||
\pgfimage[width=.9\textwidth]{fig_chapter10/burgers1}
|
||||
|
||||
We introduce two ghost cells on both sides\\
|
||||
\begin{enumerate}
|
||||
\item Update from left with $u_i^{n+1}=\dots$
|
||||
@@ -7983,6 +7984,24 @@ GROUP "/" {
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{MPI I/O}
|
||||
|
||||
We figured out that HDF5 is a superior format for parallel output of structured files. It is however not always convenient when the data is not easily structured. A practical example is the output of particle data in Particle-in-Cell simulations: This data could be stored in H5Tables. Unfortunately this is not very efficient.
|
||||
|
||||
MPI offers a replacement for POSIX I/O functions that support different modes of parallel output. We will discuss Cooperative Parallel I/O here, i.e., different MPI processes write into one file at the same time.
|
||||
|
||||
The MPI framework is easily adaptable to I/O operations: Writing is like sending and reading is like receiving. Any parallel I/O system will need:
|
||||
\begin{itemize}
|
||||
\item collective operations
|
||||
\item user-defined datatypes to describe both
|
||||
memory and file layout
|
||||
\item communicators to separate application-level
|
||||
message passing from I/O-related message
|
||||
passing
|
||||
\item non-blocking operations
|
||||
\end{itemize}
|
||||
|
||||
|
||||
\section{Using the local cluster}
|
||||
|
||||
\subsection{Storage spaces}
|
||||
|
||||
Reference in New Issue
Block a user