Hi,

I have a problem with PVFS access MPI-IO. I think I installed PVFS2 correctly 
since I can use its built-in API like pvfs-ping.

But after installed mpich with ROMIO. I can compile my program, I cannot run 
program correctly. It will report an error like bellow:

MPI_File_open: File does not exist, error stack:
ADIO_RESOLVEFILETYPE_FNCALL(461): Invalid file name /mnt/pvfs2/test.out

Is there anyone know how to fix this error? My code is bellow, thanks.

Best,

Kai
 my simple mpi-io testing code:
 #include <stdio.h>
 #include <mpi.h>

 main(int argc, char **argv) {
  int nprocs;
  int myrank;
  MPI_File mf;

  int errcode;
  char msg[MPI_MAX_ERROR_STRING];
  int resultlen;

  MPI_Init(&argc, &argv);
  MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
  MPI_Comm_rank(MPI_COMM_WORLD, &myrank);

  errcode = MPI_File_open(MPI_COMM_WORLD, "/mnt/pvfs2/tmp/test-mpi-
 io", MPI_MODE_RDONLY, MPI_INFO_NULL, &mf);

  if (errcode != MPI_SUCCESS) {
    MPI_Error_string(errcode, msg, &resultlen);
    fprintf(stderr, "%s: %s\n", "MPI file open error.", msg);
    MPI_Abort(MPI_COMM_WORLD, 1);
  }

  MPI_File_close(&mf);
  MPI_Finalize();
 return 0;
}



_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to