parallel netCDF question

Daniel S. Katz Daniel.S.Katz at jpl.nasa.gov
Wed Dec 21 16:52:09 CST 2005


Hi,

I have a parallel code/machine which uses the standard netCDF library to 
write data to a single file system NFS-mounted on the compute codes.  As 
I got this code, it uses a fairly simple MPI send/recv mechanism 
(similar to token passing) to allow output files to be written by 
multiple processors in a serialized fashion (each opens, writes, then 
closes the file).  This is slow, and bad!

As I don't know the netCDF library well, my first thought is simply to 
have all the processors write at once, since they are going to write to 
separate parts of the file.  However, depending on how the library does 
buffering, this may not work.  (I know it wouldn't work with the cfitsio 
package, for example.)  Does anyone know if this will work, will not 
work, or will have uncertain behavior?

Assuming that this will not always work, is parallel netCDF the next 
choice, even when the file system is question is not a parallel file system?

Any other thoughts or suggestions?

Thanks,
Dan

-- 
          Daniel S. Katz                Daniel.S.Katz at jpl.nasa.gov
    Jet Propulsion Laboratory               or d.katz at ieee.org
California Institute of Technology          or dsk at computer.org
        Mail Stop 126-104                 (818) 354-7359 (voice)
       4800 Oak Grove Drive                (818) 393-6141 (fax)
     Pasadena, CA  91109-8099       http://pat.jpl.nasa.gov/public/dsk/




More information about the parallel-netcdf mailing list