Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Invalid filename?
From: Reuti (reuti_at_[hidden])
Date: 2013-01-21 13:00:12


Am 21.01.2013 um 15:55 schrieb Eric Chamberland:

> If you try to open a file with a ":" in the filename (ex: "file:o"), you get an MPI_ERR_NO_SUCH_FILE.
> ERROR Returned by MPI: 42
> ERROR_string Returned by MPI: MPI_ERR_NO_SUCH_FILE: no such file or directory
> Just launch the simple test code attached to see the problem.
> MPICH has the same bug, but is a little more explicit about it:
> ADIO_RESOLVEFILETYPE_PREFIX(575): Invalid file name file:o
> Is this really a bug?

although you can create such files in Linux, it's not portable. (Reserved characters and words)

Best is to use only characters from POSIX portable character set for filenames. Especially as this syntax with a colon is used to denote the file system, i.e. with the name "nfs:foobar" you will tell MPI that the file "foobar" is located on NFS.

(page 392 in the MPI 2.2 standard)

-- Reuti