Learn OpenMP in C++ (parallel programming)

所在平台: Udemy

课程主页: https://www.udemy.com/course/learn-openmp-in-c-parallel-programming/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:学习 C++ 中的 OpenMP(并行编程) 课程概述:欢迎参加本实用课程,旨在教授使用 OpenMP 进行 C 和 C++ 高级语言的并行编程。我们将首先解释什么是并行程序,及其应用和不同示例。接着,我们介绍了并行编程中使用的两大 API:OpenMP 和 MPI,并学习它们之间的并发性与并行性的区别。此外,我们讨论了共享内存模型、分布式内存模型和混合模型等在并行编程中的实现。 我们还探讨了任务区域的概念以及如何声明任务区域。然后,我们进入使用 OpenMP API 编写并行程序的环节。部分示例展示了 OpenMP 的工作共享构建,包括:1. 并行区域 - 例如 #pragma omp parallel;2. 运行时函数/环境变量 - 例如 int my_thread_id = omp_get_num_threads(); - omp_set_num_threads(8); 3. 同步 - 例如 #pragma omp barrier;4. 工作共享 - 例如 #pragma omp for, #pragma omp sections;5. 数据环境 - 例如 #pragma omp parallel shared/private (…) 6. 任务等。 每节课中都包含大量实用示例,以帮助学生更好地理解讨论的概念。课程结束时,学生将能够有效地实现并行编程,提高用 C 和 C++ 编写程序的速度和质量。谢谢。

课程评论(0条)

课程详情

Welcome.This is a practical course on C and C++ high level language which teaches parallel programming using openMP. We start by explaining what a parallel program is, its applications and different examples of it. Then we introduced the two main API used for parallel programming which are openMP and MPi. We also learn the difference between concurrency and parallelism.We also discussed shared memory model, distributed memory model and hybrid model etc relative to their implementation in parallel programming. We discussed what a task region is, and how to declare one. Then we dived in to writing parallel programs using openMP APi. Some of the programs demonstrated each of the openMP work sharing constructs including; 1. Parallel Regions -e.g #pragma omp parallel 2. Runtime functions/environment variables -e.g int my_thread_id = omp_get_num_threads(); - omp_set_num_threads(8);3. Synchronization - e.g #pragma omp barrier 4. Work sharing - e.g #pragma omp for, #pragma omp sections 5. Data Environment - e.g #pragma omp parallel shared/private (…) 6. tasks. etc. A lot of practical examples are also included in most lectures to enable the reader get a good grasp of the concept being discussed.At the end of the course the student would be able to efficiently implement parallel programming to improve the speed and standard of programs written in C and C++.Thank you.

课程标签

0人关注该课程

主题相关的课程