Skip to content
Snippets Groups Projects
Commit ce6343ce authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

Add slides for compilation and begin coresponding exercises

parent 0613e055
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,30 @@
\onslide<5>\addimage[width=12cm]{\FIGREP/compilation_steps_4.pdf}{2cm}{1cm}
\end{frame}
\begin{frame}
\frametitle{Compilation}
\framesubtitle{Compilation options}
Many compilation options can be used to display more informations such as:
\begin{itemize}
\item "Manipulation": \cmd{-o}, \cmd{-c}, etc.
\item "Debug": \cmd{-g}, \cmd{-traceback} (gcc), etc.
\item "Optimization": \cmd{-On}, \cmd{-fastmath}, etc.
\item Option summary for GNU: \url{https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html\#Option-Summary}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Compilation}
\framesubtitle{Exercise simpleCompilation}
\begin{itemize}
\item Go to the directory \cmd{simpleCompilation}
\item Compile the code \cmd{saxpy.F90}
\item Modify \cmd{saxpy.F90} in order to suppress warnings
\item Execute the code
\item Try different compilation options for optimization, and compare the timing displayed from the corresponding runs
\end{itemize}
\end{frame}
\begin{frame}[t,fragile]
\frametitle{Compilation}
\framesubtitle{Link to libraries}
......@@ -86,6 +110,16 @@
}
\begin{frame}
\frametitle{Compilation}
\framesubtitle{Exercise compilationWithLibrary}
\begin{itemize}
\item Go to the directory \cmd{compilationWithLibrary}
\item Compile the code \cmd{main.F90} with library \cmd{libsaxpy.so}
\item Execute the code
\item Check the results according to exercise \cmd{simpleCompilation}
\end{itemize}
\end{frame}
\begin{frame}[t,fragile]
\frametitle{Compilation}
......
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