Introduction - If you have any usage issues, please Google them yourself
Session 4 introduces thread parallelism and the parallel framework OpenMP. Discussed topics include: using threads to utilize multiple processor cores, coordination of thread and data parallelism, using OpenMP to create threads and team them up to process loops and trees of tasks. OpenMP discussion mentions controlling the number of threads, controlling variable sharing with clauses and scoping, loop scheduling modes, using mutexes to protect race conditions, and scalable approach to parallel reduction with thread-private variables. The lecture part concludes with a discussion of the general approach to realizing opportunities for parallelism in computing applications. The hands-on part demonstrates using OpenMP to parallelize serial computation and demonstrates for-loops, variable sharing, mutexes and parallel reduction on an example application performing numerical integration.