|
PathScale Compiler Suite64-Bit Compilers for Linux |
|
User login |
Building NetCDF
NetCDF (network Common Data Form) is an interface for array-oriented
data access and a library that provides an implementation of the interface. The netCDF library also defines a machine-independent for representing scientific data. Together, the interface, library, and support the creation, access, and sharing of scientific data.
Steps to building
To build NetCDF, you will need to download the source,
configure it, and then build it. These steps, and any known limitations, are described in the sections below.
Downloading NetCDF
NetCDF can be downloaded at the NetCDF
website. NetCDF is not a performance-intensive code, so we recommend building it with the -O2 -g flags.
Building NetCDF
For this example we've chosen to build version 3.6.0-p1. The EKOPath
compiler has also been tested with version 3.5.1. To build NetCDF, first get the souce code and unpack it. tar xzf netcdf.tar.gz cd netcdf-3.6.0-p1/src Now set the flags to configure NetCDF to build with the PathScale compilers. export CC=pathcc export CFLAGS='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -g ' export CPPFLAGS=-Df2cFortran export CXX=pathCC export FC=pathf90 export FFLAGS='-O2 -g ' export CXXFLAGS='-O2 -g ' ./configure To clean up any earlier versions of NetCDF, use this command: make clean Then build and install NetCDF with these commands: make make test make install
Known limitations
There are no known limitations.
We recommend you record what steps you took, along with their output, make foo 2>&1 | tee make-foo-log.txt If you have any comments or suggestions about additions to these
categories [ ]
|
Active forum topicsShopping cart
|