On Sun, 2017-06-11 at 18:50 +0000, Kai Wu wrote:
> 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,
Code looks correct at quick glance.
If you have mounted PVFS with the kernel module and you have a
/mnt/pvfs2 directory, then I don't know what's wrong.
If you don't have the kernel module loaded, you can use the 'pvfs2:'
prefix to
use a 100% userspace path.
It might be the case that when you configured ROMIO, you did not
request pvfs2 support: --with-file-system=pvfs2
==rob
> 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
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users