简体   繁体   English

Pthreads,MPI和OpenMP中的C ++

[英]C++ in Pthreads, MPI and OpenMP

Good day. 美好的一天。 I was attending a course on parallel and distributed programming and one of my assignment requires us to program in C language using parallel programming extensions such as Pthreads, MPI and OpenMP. 我当时参加了有关并行和分布式编程的课程,我的一项任务是要求我们使用并行编程扩展(例如Pthreads,MPI和OpenMP)以C语言进行编程。 The thing is, I have more exposure on C++ and I was wondering is C++ compatible with those parallel extensions as well? 问题是,我对C ++有更多了解,我想知道C ++是否也与那些并行扩展兼容?

If C++ is not compatible, is there any quick cheat sheets or advice on mastering C in a short period? 如果C ++不兼容,是否有任何简短的速查表或有关在短时间内掌握C的建议?

All of them support C and C++, as say @Tudor. 它们都支持C和C ++,例如@Tudor。 All popular compilers support OpenMP. 所有流行的编译器都支持OpenMP。 To use MPI you need to install any realization of MPI, for example OpenMPI, mpich... pthreads is a POSIX standard for threads, but you can use it also under Windows (Pthreads-w32) 要使用MPI,您需要安装任何MPI实现,例如OpenMPI,mpich ... pthreads是线程的POSIX标准,但是您也可以在Windows(Pthreads-w32)下使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM