[MPICH] Hi..Let me ask you about FILE I/O using MPICH2

Rajeev Thakur thakur at mcs.anl.gov
Mon Sep 26 11:22:46 CDT 2005


The file info.txt should be in the same directory as the executable. It
should also be available on all nodes where the program is being run (for
example, via a shared file system such as NFS).

Rajeev 

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of AO AA±O
> Sent: Saturday, September 24, 2005 11:51 PM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] Hi..Let me ask you about FILE I/O using MPICH2
> 
> Hi..I've got a question about FILE I/O using MPICH2
> 
> this is the code i worte.
> 
> MPI_File_open(MPI_COMM_WORLD"info.txt",MPI_MODE_RDWR,MPI_INFO_
> NULL,&file2);
> 
> MPI_File_read_shared(file2,buf2,bufsize,MPI_CHAR,&status); 
> 	
> the problem is I can't read info.txt although it's in the 
> same directory 
> with mpiexec.
> 
> but if I use MPI_File_wriete_shared, I could find "info.txt" 
> and read it.
> 
> another strange thing is that if I change the name "info.txt" into 
> "ano_info.txt", there must be
> 
> error about not finding "info.txt"
> 
> it still can find "info.txt"...How could it be possible? 
> maybe it's caused 
> by channel or file pointer.
> 
> hm..anyway, I want to use network mapped drive with FILE I/O
> 
> any suggestion for that? plz, give me some
> 
> 
> -Dean
> 
> 
> 




More information about the mpich-discuss mailing list