[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netcdf solution for AIX (fwd)



>To: address@hidden
>From: Mary Haley <address@hidden>
>Subject: Re: 20011018: netcdf solution for AIX (fwd)
>Organization: NCAR Scientific Computing Division
>Keywords: large file support, LARGEFILE_SUPPORT, LARGEFILE_SOURCE

Mary,

> > In case you're interested, the forwarded note describes how to build
> > netCDF on AIX systems with "large file support", that is support for
> > writing and reading netCDF files larger than 2 Gbytes.
> 
> Thanks Russ, this will definitely come in handy.  I wonder if
> something similar could be done on Suns, since they seem to have some
> kind of "large file support" built into their operating system.

On Sun systems with a 64-bit architecture, supposedly all 64-bit
applications (built with CFLAGS='-xarch=v9' ) can handle large files
by default.  In our installation instructions, we give the particulars:

  http://www.unidata.ucar.edu/packages/netcdf/INSTALL.html#solaris

And even for 32-bit applications, it's possible to compile for large
file support, with

 CFLAGS='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'

It's also possible to do the same thing on Linux systems.  I'll be
writing up an FAQ or a web page on this soon, but on a 32-bit Linux
system with Large File Support, you can build with

 Platform:  Linux 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686
 CFLAGS:    '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'

I verified that I can read and write a 6 Gbyte netCDF file from C or
Fortran on this system.

--Russ