How to compiler pNetCdf with mpich2 and openmpi using icc and ifort ?

Rob Latham robl at mcs.anl.gov
Fri Feb 4 10:09:37 CST 2011


On Fri, Feb 04, 2011 at 10:01:33AM -0300, varlei at dge.inpe.br wrote:
> I need compiling the pNetCDF program using the mpich2 (version  1.3.1)  and/or
> open-mpi (version 1.4.3), both have is installed in my server. To compiler, i'am
> have icc and ifort. 

Sounds like you have all the necessary tools.  

> The file README.ifc_linux in the pnetcdf package, the vars environment above
> settings is:
> 
>  setenv MPICC mpiicc
>  setenv MPIF77 mpiifc 
>  setenv F77 ifc
>  setenv FC  ifc 
>  setenv CC  icc
> 
> I dont have MPI from Intel. 

I think it's actually even easier than that.  let's try the simple
method first:

configure --with-mpi=/path/to/mpi 

where /path/to/mpi is wherever your MPI implementation is installed.
For example, the MPI compiler wrappers on one system were installed 
/soft/mvapich2/1.5-intel-11.1.064/bin/
so I build pnetcdf as

configure --with-mpi=/soft/mvapich2/1.5-intel-11.1.064/

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the parallel-netcdf mailing list