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

  • To: Fabrício Zimmerer Murta <fabricio@xxxxxxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] Building netcdf-3.6.0-p1 with intel 2011 compilers
  • From: Larry Baker <baker@xxxxxxxx>
  • Date: Mon, 4 Feb 2013 13:36:32 -0800
In the original command, CC was not assigned to the Intel compiler (icc), yet 
the C preprocessor was assigned to use the Intel C preprocessor.  On my system, 
CC defaults to gcc.  Also, CXX is supposed to be the C++ compiler.  When 
defined as ${CPP}, that would not have compiled; it would have only run the 
preprocessor step.  If it "worked", that must have been because there were no 
C++ sources, not because the command was correct.

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



On 4 Feb 2013, at 1:19 PM, Fabrício Zimmerer Murta wrote:

> Thanks, that must do it as well. I was just too lazy to build up the correct 
> command for the preprocessor. <Emoticon1.gif> 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
> 

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