From 56acf72692c8a04f9ac2044179b2896541ba5b66 Mon Sep 17 00:00:00 2001 From: Felix Spanier Date: Thu, 26 Jan 2023 11:26:46 +0100 Subject: [PATCH] NumMeth-22: Beginn MPI I/O --- nummeth-ws22/skript.tex | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/nummeth-ws22/skript.tex b/nummeth-ws22/skript.tex index 59f4692..fb31c12 100644 --- a/nummeth-ws22/skript.tex +++ b/nummeth-ws22/skript.tex @@ -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}