用于 c++ 的 openmpi 库

发布于 2025-01-05 02:08:55 字数 216 浏览 1 评论 0原文

我使用的是 ubuntu 10.04 系统,并且使用

sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev 安装了 mpi 库

我可以使用命令 mpicc 编译和运行纯 c-mpi 代码和 mpirun 但我无法使用 mpicc 编译 cpp-mpi 代码

我是否需要安装任何其他库来编译 cpp 代码?

I am using an ubuntu 10.04 system and I installed mpi libraries using

sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev

I am able to compile and run pure c-mpi code using the commands mpicc and mpirun but I am not able to compile cpp-mpi code using mpicc

Do I need to install any additional libraries to compile cpp code ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绿萝 2025-01-12 02:08:55

更多谷歌搜索给了我答案

,我必须使用 mpicxx 来编译和运行代码

more googling gave me the answer

I had to use mpicxx to compile and run the code

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文