mpiexec fails as MPI init aborts

后端 未结 3 1275
忘了有多久
忘了有多久 2021-02-20 09:23

I am trying to install MPICH 2 on a 64-bit machine running on Ubuntu 11.04 (Natty Narwhal). I used

sudo apt-get install mpich2

First I was surp

3条回答
  •  悲&欢浪女
    2021-02-20 10:11

    I have the same problem on Ubuntu 12.04. I find my problem is because I have both open-mpi and mpich2 on my computer. When I compile my program using mpicc, it will be linked to open-mpi not mpich2. To fix this problem, you can use "mpicc.mpich2" to compile your program and then use "mpiexec.mpich2" to execute your code.

提交回复
热议问题