[mpich-discuss] icc error with mpich2
Siraj
sirajkhan78 at gmail.com
Mon Aug 23 17:48:01 CDT 2010
Hi all,
I recently have downloaded and installed mpich2 for my Linux SGI machine
(Linux pg-hpc-altix-01 2.6.5-7.139-sn2 #1 SMP Fri Jan 14 15:41:33 UTC 2005
ia64 ia64 ia64 GNU/Linux). I compiled it with icc and ifort. I am using
climate (CCSM) coupled model on this machine. The problem is when i compile
one of my code i get error of mpi.h for icc. For ifort every thing is fine.
Here is the error.
icc -c -I.
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/chemistry/bulk_aero
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/chemistry/utils
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/physics/cam
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/dynamics/fv
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/cpl_mct
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/control
-I/hpc/home/sislam/columbia/ccsm/models/csm_share/shr
-I/hpc/home/sislam/columbia/ccsm/models/csm_share/dshr
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils
-I/hpc/home/sislam/columbia/ccsm/models/utils/timing
-I/hpc/home/sislam/columbia/ccsm/models/utils/pio
-I/hpc/home/sislam/columbia/ccsm/models/utils/mct/mpeu
-I/hpc/home/sislam/columbia/ccsm/models/utils/mct/mct
-I/hpc/home/sislam/columbia/ccsm/models/utils/esmf_wrf_timemgr
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils/pilgrim
-I/hpc/home/sislam/columbia/ccsm/models/drv/driver
-I/hpc/home/sislam/columbia/ccsm/models/drv/shr
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils/cam_dom
-I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils/cam_dom/cpl_mct
-I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/main/cpl_mct
-I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/main
-I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/biogeophys
-I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/biogeochem
-I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/riverroute
-I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/drivers/cpl_mct
-I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/drivers/cpl_share
-I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/mpi
-I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/source
-I/hpc/home/sislam/columbia/ccsm/models/glc/sglc/cpl_mct
-I/hpc/home/sislam/columbia/include
-I/hpc/home/sislam/mpich2-1.2.1p1/include -DNO_SHR_VMATH -DSEQ_MCT
-DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1
-DCOUP_DOM -DPLON=144 -DPLAT=96 -DPLEV=26 -DPCNST=3 -DPCOLS=16 -DPTRM=1
-DPTRN=1 -DPTRK=1 -DSTAGGERED -DCCSMCOUPLED -Dcoupled -Dncdf -DNCAT=1
-DNXGLOB=144 -DNYGLOB=96 -DNTR_AERO=0 -DBLCKX=36 -DBLCKY=96 -DMXBLCKS=1
-D_USEBOX -D_NETCDF -DNO_MPI2 -DSPMD -DLINUX
/hpc/home/sislam/columbia/ccsm/models/utils/timing/GPTLprint_memusage.c
/usr/include/mpi.h(30): error: invalid redeclaration of type name
"MPI_Request" (declared at line 264 of
"/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h")
typedef unsigned int MPI_Request;
^
/usr/include/mpi.h(31): error: invalid redeclaration of type name
"MPI_Group" (declared at line 120 of
"/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h")
typedef unsigned int MPI_Group;
^
/usr/include/mpi.h(32): error: invalid redeclaration of type name "MPI_Comm"
(declared at line 115 of "/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h")
typedef unsigned int MPI_Comm;
^
/usr/include/mpi.h(33): error: invalid redeclaration of type name
"MPI_Errhandler" (declared at line 243 of
"/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h")
typedef unsigned int MPI_Errhandler;
^
/usr/include/mpi.h(34): error: invalid redeclaration of type name "MPI_Op"
(declared at line 136 of "/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h")
typedef unsigned int MPI_Op;
^
/usr/include/mpi.h(35): error: invalid redeclaration of type name
"MPI_Datatype" (declared at line 23 of
"/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h")
typedef unsigned int MPI_Datatype;
^
Can any body help me to find the solution.
Note: I have compiled mpich using following command
./configure --prefix=/hpc/u2/sislam/mpich2-1.2.1p1'
'--with-atomic-primitives=no' 'CC=icc' 'F77=ifort'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100823/64155a03/attachment-0001.htm>
More information about the mpich-discuss
mailing list