November 2015
Beginner to intermediate
236 pages
4h 54m
English
This chapter introduces a number of concurrency abstraction layers that provide the software developer some necessary abstractions for developing multicore software. Each of these abstraction layers has a technique for developing software using the approach, so several code examples are given for each approach. Pros and cons are discussed for each approach.
Concurrency; abstraction; OpenCL; OpenMP; MPI; libraries; languages; frameworks; MCAPI
Writing code for multicore can be tedious and time-consuming. Here is an example. Below is the sequential code for a simple Dot Product:
#define SIZE 1000
Main() {
double a[SIZE], b[SIZE];
// Compute a and b
double sum = 0.0;
for(int i=0, i < SIZE; ...
Read now
Unlock full access