-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgpu_programming_bpg.tex
165 lines (128 loc) · 4.62 KB
/
gpu_programming_bpg.tex
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
\RequirePackage{lineno}
\documentclass[article, a4paper, 11pt, amsmath, amssymb]{revtex4-1}
\usepackage[dvips]{graphicx}
\usepackage{threeparttable}
\usepackage[yyyymmdd,hhmmss]{datetime}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
pdftitle={Overleaf Example},
pdfpagemode=FullScreen,
}
% format for abbreviations
\usepackage{enumitem}
\newlist{abbrv}{itemize}{1}
\setlist[abbrv,1]{label=,labelwidth=1in,align=parleft,itemsep=0.1\baselineskip,leftmargin=!}
\usepackage{subfigure}
% \usepackage{subcaption}
\usepackage{indentfirst}
\usepackage{color}
\usepackage{rotating}
\usepackage{footmisc}
% \usepackage{listings}
%\lstset{basicstyle=\footnotesize\ttfamily, breaklines=true, frame=bottomline, escapechar=|}
% styles for code
%\usepackage[charsperline=90]{sty_file/jlcode}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{ylw_style}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\scriptsize\linespread{1.0}\selectfont,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=4
}
\lstset{style=ylw_style}
\pagestyle{plain}
\bibliographystyle{apsrev}
\DeclareGraphicsExtensions{.eps, .mps, .pdf, .jpg, .png}
\begin{document}
\setpagewiselinenumbers
\modulolinenumbers[5]
% -------------------------------------------------------------------- %
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\Huge
\textbf{\LARGE{GPU Programming: When, Why and How?}}\\
\vspace{0.0cm}
\textbf{\Large{--- --- A Best Practice Guide}}
\vspace{0.3cm}
\textrm{\large{AAA~$^{1}$, BBB~$^{2}$, CCC~$^{3}$, DDD~$^{4}$, EEE~$^{5}$}}\\
\vspace{1.0cm}
$^1$ 111\\
$^2$ 222\\
$^3$ 333\\
$^4$ 444\\
$^5$ 555
\vspace{2.0cm}
\includegraphics[height=5cm]{fig_logo_history/eurocc.png}
%\hspace{0.8cm}
%\includegraphics[height=5cm]{fig_logo_history/enccs.png}
\end{center}
\end{titlepage}
\begin{abstract}
\textbf{\LARGE{Rules to highlight keywords in this paper}}:
\begin{itemize}
\item The $Italicized$-$text$ is used to highlight variables from code examples, such as the variables $threadIdx.x$, $threadIdx.y$, and $threadIdx.z$ from code examples.
\item The~\textbf{black bold} font for normal keywords where we want to highlight them, for example,~\textbf{CUDA/oneAPI/MPI/SYCL}.
\item The~\textbf{\textcolor{red}{red bold}} font for important keywords, directives, build-in kernels, and some statements in programming languages, like \textbf{\textcolor{red}{threadIdx.x/numpy/@vectorize}}.
\item The~\textbf{\textcolor{brown}{brown bold}} font for directories, names for files, and flags for compilation. Here are several examples.
\begin{itemize}
\item \textbf{\textcolor{brown}{-arch=sm\_XY}}
\item \textbf{\textcolor{brown}{content/examples/cuda-hip}} directory
\item \textbf{\textcolor{brown}{CUDA.jl}} for NVIDIA GPUs
\item \textbf{\textcolor{brown}{\$ export MPICH\_GPU\_SUPPORT\_ENABLED=1}}
\item \textbf{\textcolor{brown}{cuda\_runtime.h}} and~\textbf{\textcolor{brown}{cuda.h}} for CUDA
\end{itemize}
\end{itemize}
\end{abstract}
\maketitle
% -------------------------------------------------------------------- %
\clearpage
\tableofcontents
%\lstlistoflistings
% -------------------------------------------------------------------- %
\clearpage
\linenumbers
\include{00_introduction}
\include{01_history}
\include{02_ecosystem}
\include{03_problem}
\include{04_concept}
\include{05_intro_programming_model}
\include{06_language_support}
\include{07_directive_based_models}
\include{08_multiple_GPUs}
\include{09_nonportable_kernel_models}
\include{10_portable_kernel_models}
\include{11_gpu_porting}
\include{12_recommendations}
\include{13_examples}
% -------------------------------------------------------------------- %
\clearpage
\include{14_abbreviations.tex}
% -------------------------------------------------------------------- %
\clearpage
\section*{Further Documentation}
\bibliography{gpu_programming_bpg}
\end{document}
%{\centering{\textcolor{red}{\bf{\Huge WYL @ \today~\currenttime}}}}\\