You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/2-4: Parallel-Computing.jl
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Julia has a strong parallel computing infrastructure that enable high performanc
24
24
25
25
# Vectorization
26
26
27
-
All modern CPUs provide vectorization or Single-Instruction-Multiple-Data (**SIMD**) execution. SIMD is when the computer can apply a single instruction to multiple data in a single CPU cycle. For example, consider adding two vectors `A` and `B`.
27
+
All modern CPUs provide vectorization or Single-Instruction-Multiple-Data (**SIMD**) execution. SIMD is when the computer can apply a single instruction to multiple data in a single CPU cycle. For example, consider adding two vectors `A` and `B`.
28
28
29
29
The serial computation loops through each value in the two arrays and applies the
30
30
addition operation during each CPU cycle (left figure). Whereas, the vectorized computation loops through groups of values in the two arrays and applies the addition operation during each CPU cycle (right figure), resulting in 2x, 4x, or greater performance improvement depending on the CPU architecture (i.e., AVX, AVX2, AVX512).
@@ -37,7 +37,7 @@ Julia will vectorize array compuations whenever possible and as discussed in ses
0 commit comments