Short lectures on OpenMP and CUDA
In the context of the Component-Based System Design of Prof. Buttazzo at Scuola Superiore Sant'Anna I have given a 10-hour module about OpenMP and GPU computing.
The slides can be found here:
The slides can be found here:
The exercises with solutions are available on the following repository:
One of the exercises has been the OpenMP/CUDA implementation of Mandelbrot, simple enough to provide a starting point.
In the case of OpenMP it is possible to play with the scheduling parameters of parallel for and the ordering of execution can be graphed. Here have, for example (clockwise from top left): static, dynamic, auto, guided.
Comments