<< parallel_computing

Parallel Computing

Terminology

Two kinds of parallelism:

Example of parallelization. Adding \(n\) numbers. The series version usually seems like

int sum = 0;
for (i = 0; i < n; i++){
    x = func(i);
    sum += x;
}

And the pralllel version:

int my_sum = 0;
int my_first_i = ...;
int my_last_i = ...;

for (int i = 0; i)

Two architecture of parallel system:

Screen Shot 2020-09-18 at 14.28.07

Problems of Parallelism.

Explicit Paralleling C

SIMD

Drawback