-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
151 lines (132 loc) · 4.16 KB
/
main.tex
File metadata and controls
151 lines (132 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
\documentclass[titlepage, dvipsnames]{article}
\usepackage[%
a4paper,%
left=2.5cm,%
right=2.5cm,%
top=2cm,%
bottom=2cm,%
]{geometry}%
\usepackage{tikz}
\usetikzlibrary{shapes,decorations}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{float}
\usepackage{enumitem}
\usepackage{etoc}
\usepackage[framemethod=tikz]{mdframed}
\usepackage[answerdelayed]{exercise}
\usepackage{subfiles}
\usepackage{wrapfig}
\usepackage{multicol}
\usepackage{transparent}
\usepackage{minted}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{hyperref}
\hypersetup{
colorlinks=false,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\usepackage[compact]{titlesec}
% solution to add `subsubsubsection` from https://tex.stackexchange.com/questions/60209/how-to-add-an-extra-level-of-sections-with-headings-below-subsubsection
\setcounter{secnumdepth}{4}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\newcommand{\subsubsubsection}[1]{\paragraph{#1}}
\urlstyle{same}
\graphicspath{ {./images/} }
% custom commands
\let\bold\bfseries
\newcommand{\N}{\mathbb{N}}
\newenvironment{TODO}[1]
{\textcolor{red}{\textbf{TODO}}
#1
\\
}
% Theoreme etc.
\theoremstyle{plain}
\newmdtheoremenv[
backgroundcolor=red!10,
hidealllines=true,
innerleftmargin=10pt,
innerrightmargin=10pt,
innertopmargin=0pt,
]{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
\newmdtheoremenv[
topline = true,
bottomline = true,
leftline = false,
rightline = false,
innertopmargin = 10pt,
innerbottommargin = 10pt,
]{example}{example}[section]
\theoremstyle{definition}
\newmdtheoremenv[
backgroundcolor=brown!20,
hidealllines=true,
innerleftmargin=10pt,
innerrightmargin=10pt,
innertopmargin=0pt,
]{definition}{Definition}[subsection]
\title{Parallel Programming PVW FS19}
\author{Lasse Meinen}
\begin{document}
\renewcommand{\figurename}{Fig.}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\thesubfigure}{\roman{subfigure}}
\renewcommand{\ExerciseHeaderTitle}{\ExerciseTitle}
\renewcommand{\ExerciseHeader}{\centerline{\textbf{\large\ExerciseName\ExerciseHeaderNB\ExerciseHeaderTitle\ExerciseHeaderOrigin}}\\}
\renewcommand{\ExerciseListHeader}{\ExerciseHeaderDifficulty%
\textbf{\ExerciseHeaderNB .%
\ \ExerciseHeaderTitle \newline}%
\ExerciseHeaderOrigin\ignorespaces}
\renewcommand{\AnswerListHeader}{\textbf{\ExerciseHeaderNB. \ \ExerciseHeaderTitle}}
\setlength{\Exesep}{1\baselineskip}
\setlength{\QuestionBefore}{.2em}
\setlength{\QuestionIndent}{2em}
\makeatletter
\begin{titlepage}
\begin{center}
\huge \textbf{Parallel Programming \\ Inofficial Course Script}
\\ \bigskip
\Large Last Updated: April, 2023
\\ \bigskip
\large Author: Sascha Kehrli
\\ \bigskip
\Large github.com/skehrli/ParallelProgrammingScript
\vfill
{\includegraphics[width = 0.3\textwidth]{images/ETH.png}}
\vfill
\end{center}
% \noindent \textbf{Disclaimer:}\\
% This script only serves as additional material for practice purposes and should not serve as a substitute for the lecture material. We neither guarantee that this script covers all relevant topics for the exam, nor that it is correct. If an attentive reader finds any mistakes or has any suggestions on how to improve the script, they are encouraged to contact the authors under the
% indicated email address or, preferably, through a gitlab issue on https://gitlab.ethz.ch/vis/luk/pvw\_script\_pprog.
\end{titlepage}
\makeatother
\thispagestyle{empty}
\newpage
\setcounter{page}{1} %Start the actual document on page 1
\tableofcontents
\newpage
\subfile{Disclaimer}
\newpage
\subfile{1.Introduction}
\newpage
\subfile{2.ThreadCommunication}
\newpage
\subfile{3.ExploitParallelism}
\newpage
\subfile{4.MeasuringParallelism}
\newpage
\subfile{5.ParallelAlgos}
\newpage
\subfile{6.Locking}
\end{document}