Control: reassign -1 mpich
Control: retitle -1 fails to run basic ping test

Hello,

Lucas Nussbaum, le mar. 29 avril 2025 14:48:49 +0200, a ecrit:
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> Relevant part (hopefully):

The real reason is just before that :)

    mpirun.mpich -np 2 --bind-to none ./build-mpich/test/mpi/mpi_ping | grep 
"10000     16" || touch debian/failed
    This program requires 2 MPI processes, aborting...
    This program requires 2 MPI processes, aborting...

mpich fails to run a basic mpi ping test, it reports just one process
while have passed -np 2, so the testsuite cannot work of course, but
that is not eztrace's fault:


int main(int argc, char **argv) {
  int comm_rank = -1;
  int comm_size = -1;
  char host_name[1024] = "";
  [...]

  MPI_Init(&argc, &argv);

  MPI_Comm_size(MPI_COMM_WORLD, &comm_size);
  MPI_Comm_rank(MPI_COMM_WORLD, &comm_rank);

  if (gethostname(host_name, 1023) < 0) {
    perror("gethostname");
    exit(1);
  }

  if (comm_size != 2) {
    fprintf(stderr, "This program requires 2 MPI processes, aborting...\n");
    goto out;
  }

[...]

}

Samuel

Reply via email to