c - MPI出现错误的文件描述符错误

标签 c mpi

我的程序:

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

int main(int argc, char *argv[]) {
  int numprocs, rank, namelen;
  char processor_name[MPI_MAX_PROCESSOR_NAME];

  MPI_Init(&argc, &argv);
  MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  MPI_Get_processor_name(processor_name, &namelen);

  printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);

  MPI_Finalize();
}

要运行的命令:
mpirun -np 2 -machinefile mach_list a.out

我发现了这些错误:
[noor-desktop:04209] [[50859,0],1]->[[50859,0],0] mca_oob_tcp_msg_send_handler: writev failed: Bad file descriptor (9) [sd = 9]
[noor-desktop:04209] [[50859,0],1]->[[50859,0],0] mca_oob_tcp_msg_send_handler: writev failed: Bad file descriptor (9) [sd = 9]
[noor-desktop:04209] [[50859,0],1] routed:binomial: Connection to lifeline [[50859,0],0] lost
[noor-desktop:04209] [[50859,0],1] routed:binomial: Connection to lifeline [[50859,0],0] lost

机器文件的内容是:
noor@192.168.1.4
noor@192.168.1.4没问题,我使用ssh登录,没有密码,因为我已经在那里复制了公钥。

最佳答案

关于c - MPI出现错误的文件描述符错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9852782/

相关文章:

c++ - 在linux makefile上运行MPI程序

c - MPI_Isend 和 MPI_Irecv 似乎导致死锁

c - 读取大型文本文件并在 C 程序中按字母顺序快速排序

c - C 中意外的位移行为

c - fwrite 和 fread 顺序问题

c - 如何在 C 中 lex unicode 字符?

c - C 中的 NaN 文字?

c - MPI 中 MPI_offset 的范围

mpi - SLURM:如何在一台 PE 崩溃时禁用自 Action 业清理

mpirun : token slots not supported