mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-03-14 17:00:05 +01:00
[SPCA] HW restructure
This commit is contained in:
10
semester3/spca/parts/03_hw/02_vec-op.tex
Normal file
10
semester3/spca/parts/03_hw/02_vec-op.tex
Normal file
@@ -0,0 +1,10 @@
|
||||
\newpage
|
||||
\subsection{Vector Operations}
|
||||
|
||||
Extreme performance gains beyond the results of the previous section can be gained using hardware vector registers on supported CPUs.
|
||||
|
||||
\content{Example} In Intel AVX2, $256$b vector registers like \verb|%ymm0|, \verb|%ymm1| can be used to perform component-wise single/double precision FP operations.
|
||||
\begin{minted}{gas}
|
||||
vaddsd %ymm0, %ymm1, %ymm1 # Comp.-wise 32b FP add
|
||||
vaddsd %ymm0, %ymm1, %ymm1 # Comp.-wise 64b FP add
|
||||
\end{minted}
|
||||
Reference in New Issue
Block a user