用于 c++ 的 openmpi 库
我使用的是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更多谷歌搜索给了我答案
,我必须使用
mpicxx
来编译和运行代码more googling gave me the answer
I had to use
mpicxx
to compile and run the code