MPICH2 1.0.7运行第问题

yanhh0418 2008-05-18 06:58:07
VS2005下程序:

#include "mpi.h"
#include <stdio.h>


void main(int argc,char **argv)
{
int numtasks,rank;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD,&numtasks);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);

printf("Hello World from process %d of %d\n",rank,numtasks);
MPI_Finalize();
}

运行结果如下:
[0] Error creating mpiexec processs...2
[0] launchMpiexecProcess failed
Fatal error in MPI_Init: Other MPI error ,error stack:
MPIR_Init_thread<294>: Initialization failed
MPID_Init<82>........: channel initialization failed
MPID_Init<384>........: PMI_Get_id returned 1请按任意键继续。。。
...全文
200 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
goodname365 2009-08-28
  • 打赏
  • 举报
回复
如何解释的?
Intel_merryhy 2008-05-29
  • 打赏
  • 举报
回复

Intel MKL ScaLAPACK and FFT support
• MPICH-2 1.0.x for Microsoft* Windows* for IA-32, Intel® 64, and IA-64 architectures
• Intel® MPI for IA-32 and Intel® 64 architectures
• Microsoft* MPI for Intel® 64 architecture on 64-bit versions of Windows*.

Before linking applications with ScaLAPACK and Cluster FFTs, an MPICH-2 user should do
the following:
1. Add mpich2\include to the include path
2. Add mpich2\lib to the library path
3. Add mpi.lib to user's link command
4. Add fmpich2.lib to user's Fortran link command
5. Add cxx.lib to user's Release target link command and cxxd.lib to user's Debug target link command for C++ programs.

可能你的环境设置不对, 你在命令行下面试试?

567

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧