NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Building netcdf-3.6.0-p1 with intel 2011 compilers

  • To: "Larry Baker" <baker@xxxxxxxx>
  • Subject: Re: [netcdfgroup] Building netcdf-3.6.0-p1 with intel 2011 compilers
  • From: Fabrício Zimmerer Murta <fabricio@xxxxxxxxxxxxxxxx>
  • Date: Mon, 4 Feb 2013 19:19:38 -0200
Thanks, that must do it as well. I was just too lazy to build up the correct 
command for the preprocessor.  Anyway I think both ways works, as the 
preprocessor will just preprocess once again an already preprocessed file, or 
just force .f90 and .f files (lowercase) to be preprocessed.


From: Larry Baker 
Sent: Monday, February 04, 2013 6:09 PM
To: Fabrício Zimmerer Murta 
Cc: hossein shahbazi ; netcdfgroup@xxxxxxxxxxxxxxxx 
Subject: Re: [netcdfgroup] Building netcdf-3.6.0-p1 with intel 2011 compilers


On 4 Feb 2013, at 8:51 AM, Fabrício Zimmerer Murta wrote:


      It should fix that problem. Moreover, you can set NetCDF to use the intel 
suite (both C and Fortran versions) by issuing ./configure this way:
  FC=ifort F77=${FC} CPP="icc -E" CXX="${CPP}" CXXCPP="${CPP}" CFLAGS="-O2" 
FCFLAGS="${CFLAGS}" F77FLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}" ./configure 
--prefix=${HOME}/netcdf3 && make all install


CPP is the C preprocessor, CC is the compiler.  I think you want 


  FC=ifort F77=${FC} CC=icc CPP="icc -E" CXX="${CC}" CXXCPP="${CPP}" 
CFLAGS="-O2" FCFLAGS="${CFLAGS}" F77FLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}" 
./configure --prefix=${HOME}/netcdf3


Larry Baker
US Geological Survey
650-329-5608
baker@xxxxxxxx

GIF image

  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: