mpirun 在 Intel Core 2 Duo 上有 2 个进程,但只显示 1 个进程
我正在 mac os x 10.6.8 中运行测试 mpi 程序。处理器是英特尔酷睿2双核。该程序来自 boost mpi 文档:
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
#include <iostream>
int main(int argc, char * argv[]) {
boost::mpi::environment env(argc, argv);
boost::mpi::communicator w;
std::cout << "process " << w.rank() << " of " << w.size() << std::endl;
return 0;
}
我编译了它并运行它:
mpirun -np 2 a.out
但得到了以下结果:
process 0 of 1 process 0 of 1
我认为这意味着只有一个进程在运行。我做错了什么?我想我可以在 Intel Duo 上创建 2 个进程吗?
谢谢,
加里
I am running a test mpi program in mac os x 10.6.8. The processor is Intel Core 2 Duo. The program is from boost mpi documentation:
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
#include <iostream>
int main(int argc, char * argv[]) {
boost::mpi::environment env(argc, argv);
boost::mpi::communicator w;
std::cout << "process " << w.rank() << " of " << w.size() << std::endl;
return 0;
}
I compiled it and ran it with:
mpirun -np 2 a.out
But got the following result:
process 0 of 1 process 0 of 1
which, I think, means there was only one process running. What did I do wrong? I think I can create 2 processes on a Intel Duo?
Thanks,
Gary
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论