[MPICH] A Question about MPI
Robert Latham
robl at mcs.anl.gov
Thu Sep 20 12:34:16 CDT 2007
On Thu, Sep 20, 2007 at 05:18:00PM +0800, menglige wrote:
>
> int MPI_File_open(MPI_Comm comm, char * filename, int amode, MPI_Info info, ??MPI_File * fh)
>
> I want to open a file on the remote host.the host name is "node1" and file name is "remotefile" in folder "E:\test" .
> How can i write the parameter "filename"?
Simce most MPI implementations are based on ROMIO, I'll tell you what
ROMIO can do about that, and it will likely work for you.
The NTFS driver for ROMIO doesn't go out and access remote machines.
Maybe Jayesh knows a trick or two, but you'll have to first export
that remote machine's file system to your client code (maybe a network
shared drive or shared folder.
Once you've done that, specify the path like you would in windows
Explorer. I don't regularly use windows, so the following is
untested:
If you used a shared drive, something like
char * filename = "y:\test" ;
or if you used a network folder then maybe
char * filename = \\remote_machine\test;
==rob
--
Rob Latham
Mathematics and Computer Science Division A215 0178 EA2D B059 8CDF
Argonne National Lab, IL USA B29D F333 664A 4280 315B
More information about the mpich-discuss
mailing list