This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Peter, Here's a report from an attempt to build netCDF C and Fortran libraries with Intel compilers on the NCAR high-performance computers: ------ start of report on NCAR CISL build: Good news. I got the C, Fortran, and C++ versions of NetCDF to build using the intel compilers. Some notes: - I'm using these versions: netcdf-cxx-4.2/ netcdf-fortran-4.2/ netcdf-c-4.3.2-rc1/ - My philosophy is to go as simple as possible with the compile options, so here's what I used: export CC=icc export CXX=icpc export FC=ifort export F77=ifort export F90=ifort export CFLAGS= export FFLAGS= export F90FLAGS= export CXXFLAGS= Note that all of these compilers are available when you login. You don't have to do any "module load" stuff. - I *always* remove this path from my PATH variable: /glade/apps/opt/modulefiles/ys/cmpwrappers The above creates these "wrappers" for all the gcc/icc/ifort/gfortran compilers, and I prefer to use the pure compilers that exist in /glade/apps/opt/ncl/6.1.2/intel/12.1.5/bin Here are the "pure" compiler paths and versions, just in case: geyser05[234] which icc /ncar/opt/intel/12.1.0.233/composer_xe_2011_sp1.11.339/bin/intel64/icc geyser05[235] icc --version icc (ICC) 12.1.5 20120612 Copyright (C) 1985-2012 Intel Corporation. All rights reserved. geyser05[236] which ifort /ncar/opt/intel/12.1.0.233/composer_xe_2011_sp1.11.339/bin/intel64/ifort geyser05[237] which icpc /ncar/opt/intel/12.1.0.233/composer_xe_2011_sp1.11.339/bin/intel64/icpc geyser05[238] - I always unset these three environment variables: unset LIB_NCAR unset INC_NCAR unset NETCDF This step may not be necessary, because I think these things are used by the wrapper programs. - Here are the "configure" commands I used for the three packages: netcdf-4.3.2-rc1: ./configure --enable-netcdf-4 --enable-dap --disable-shared --prefix=/glade/p/work/haley/dev/external/intel/ncl620 --enable-large-file-tests --enable-dap-remote-tests netcdf-fortran-4.2: ./configure --disable-shared --prefix=/glade/p/work/haley/dev/external/intel/ncl620 netcdf-cxx-4.2 ./configure --disable-shared --prefix=/glade/p/work/haley/dev/external/intel/ncl620 - Of course, the true test will come when I try to link NCL against all these packages! That probably won't happen until tomorrow. ------ end of report on NCAR CISL build I'll forward any additional information on this as I get it. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: EJA-190555 Department: Support netCDF Priority: High Status: Closed