Success! Using the sites provided by Paul, the install now works and
NetCDF reports that it's using the ifort compilers.
Thank you to Paul, Gerry, and Nick for your insights. I appreciate all
the help!
Cheers
Steve
On 01/28/2014 09:51 AM, Paul van Delst wrote:
?
You're talking about the compiler libraries (I think). Everyone else
is talking about the netCDF library.
Here's info on building the netCDF-4 library (use your new intel icc
compiler):
http://www.unidata.ucar.edu/software/netcdf/docs/build_default.html
And, once you've done that, here's info on bulding the netCDF-4
Fortran library (use your new intel ifort compiler):
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html
As others have mentioned, the *Fortran* library for netCDF is now
distributed separately from the "regular" (i.e. C) library for netCDF.
Here's a link to the latest stable netCDF-C release (v4.3.1):
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.1.tar.gz
And here's a link to the latest stable netCDF-Fortran release (v4.2):
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.2.tar.gz
I only use the default compiler switches for my netCDF builds (gcc,
intel, PGI, whatever..) so I can't help much with compiler switches.
cheers,
paulv
On 01/28/14 11:21, Steven Hart wrote:
Please correct me if I'm wrong but I originally downloaded and
installed the following packages from Intel:
Intel® C++ Composer XE for Linux
Intel® Fortran Composer XE for Linux
both are version: 2013_sp1.1.106
I've looked over the Intel site and I do not see any other Fortran
libraries. If there are more and I'm not seeing them, can someone
please post a link?
Cheers
Steve
On 01/28/2014 02:12 AM, Nick Papior Andersen wrote:
As Gerry says, the fortran library for NetCDF is in its own file,
you need to download that one and install that ontop of the 4.3.1.
The fortran library is at the same place as the download for the
C-version
/ Nick
2014-01-28 Steven Hart <steven.hart@xxxxxxxxxxxx
<mailto:steven.hart@xxxxxxxxxxxx>>
Thanks for the response. When I downloaded the Intel compilers I
got both the C++ and the Fortran. They were two separate installs
that go into the same install folder. I ran a test with a basic
Fortran code and ifort does compile. Are there even more Intel
Fortran libs to install?
I appreciate any help with this!
Steve
---------
Steven Hart
Systems Admin
CCAR - CU Boulder
303-492-8109 <tel:303-492-8109>
----- Reply message -----
From: "Gerry Creager - NOAA Affiliate" <gerry.creager@xxxxxxxx
<mailto:gerry.creager@xxxxxxxx>>
To: <Steven.Hart@xxxxxxxxxxxx <mailto:Steven.Hart@xxxxxxxxxxxx>>
Subject: [netcdfgroup] NetCDF install issues with Intel compilers
Date: Mon, Jan 27, 2014 5:14 PM
I'm pretty sure you'll get a response or two from the list but,
if memory serves, the Fortran libraries are now a separate
download. Go back to the download page and poke around. They're
out there, but unfortunately, I don't have time (another
commitment this evening; sorry) to look before I leave the
office. If you can't find them, drop me a note and let me know.
gerry
On Mon, Jan 27, 2014 at 5:30 PM, Steven Hart
<steven.hart@xxxxxxxxxxxx <mailto:steven.hart@xxxxxxxxxxxx>> wrote:
System info:
RHEL6 64 bit
kernel = 2.6.32-431.3.1.el6.x86_64
Intel compiler version = composer_xe_2013_sp1.1.106
- First I was trying to install netcdf using the standard
RHEL6 yum repo, but that was compiled using gfortran and the
user requires the intel ifort compilers to be used. For the
life of me I could not get the RHEL6 repo version of netcdf
to use ifort. Any ideas on how to do that would be great!
- Then I decided to try installing netcdf v4.3.1 from source.
After alot of trial and error, I got it to compile using the
following in my .bashrc
source /usr/local/intel/bin/compilervars.sh intel64
export CC=icc
export CXX=icpc
export CFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CXXFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export F77=ifort
export FC=ifort
export F90=ifort
export FFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CPP='icc -E'
export CXXCPP='icpc -E'
export CPPFLAGS='-I/usr/include -I/usr/include/hdf'
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'/usr/lib64
/usr/local/intel/composer_xe_2013_sp1.1.106/compiler/lib/intel64
/usr/lib64/hdf'
I used the following intel linkfor reference:
http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-netcdf-with-the-intel-compilers
I finally got netcdf to compile and install but when I run
"nc-config --all" it reports that it was built with the icc
compilers but with no fortran compilers at all. Needless to
say, when the user's code runs, it calls gfortran.
I'm at a loss at this point and could use some insight into
how to get netcdf happy with the intel fortran compilers.
Thanks
Steve
-- Steve Hart
Systems Administrator
Colorado Center for Astrodynamics Research
University of Colorado Boulder
Steven.Hart@xxxxxxxxxxxx <mailto:Steven.Hart@xxxxxxxxxxxx>
(303)492-8109 <tel:%28303%29492-8109>
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
<mailto:netcdfgroup@xxxxxxxxxxxxxxxx>
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
-- Gerry Creager
NSSL/CIMMS
405.325.6371 <tel:405.325.6371>
++++++++++++++++++++++
"Big whorls have little whorls,
That feed on their velocity;
And little whorls have lesser whorls,
And so on to viscosity."
Lewis Fry Richardson (1881-1953)
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx <mailto:netcdfgroup@xxxxxxxxxxxxxxxx>
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
--
Kind regards Nick
--
Steve Hart
Systems Administrator
Colorado Center for Astrodynamics Research
University of Colorado Boulder
Steven.Hart@xxxxxxxxxxxx
(303)492-8109
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
--
Steve Hart
Systems Administrator
Colorado Center for Astrodynamics Research
University of Colorado Boulder
Steven.Hart@xxxxxxxxxxxx
(303)492-8109