[mpich-discuss] Compatibility of MPICH with gfortran under windows
Jayesh Krishna
jayesh at mcs.anl.gov
Thu Sep 27 10:00:27 CDT 2012
Hi,
Looks like you are not providing the include/lib paths to the compiler/linker.
You should be providing the include (-IC:\Progra~1\MPICH2\include) and lib (-LC:\Progra~1\MPICH2\lib) paths and link with the fortran MPI library (fmpich2). I would recommend checking the gfortran manual for more information.
Regards,
Jayesh
----- Original Message -----
From: "\"BERNARD Alexis - CETE Ouest/DLRB/Risques Naturel - Géophysique\"" <alexis.bernard at developpement-durable.gouv.fr>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Thursday, September 27, 2012 2:33:12 AM
Subject: Re: [mpich-discuss] Compatibility of MPICH with gfortran under windows
Hi,
Thank you for your quick reply.
I have tried to compile fpi.f with gfortran first and I get the following error message :
C:\opentelemac\mpi\examples>gfortran fpi.f
fpi.f:25: Error: Can't open included file 'mpif.h'
I have tried a second time moving mpif.h to examples (without making any change in fpi.f) but it's not working with the following message :
C:\opentelemac\mpi\examples>gfortran fpi.f
C:\DOCUME~1\ALEXIS~1.BE~\LOCALS~1\Temp\ccf23b32.o:fpi.f:(.text+0x11): undefined
reference to `mpi_init_'
C:\DOCUME~1\ALEXIS~1.BE~\LOCALS~1\Temp\ccf23b32.o:fpi.f:(.text+0x2b): undefined
reference to `mpi_comm_rank_'
C:\DOCUME~1\ALEXIS~1.BE~\LOCALS~1\Temp\ccf23b32.o:fpi.f:(.text+0x45): undefined
reference to `mpi_comm_size_'
C:\DOCUME~1\ALEXIS~1.BE~\LOCALS~1\Temp\ccf23b32.o:fpi.f:(.text+0x23a): undefined
reference to `mpi_bcast_'
C:\DOCUME~1\ALEXIS~1.BE~\LOCALS~1\Temp\ccf23b32.o:fpi.f:(.text+0x339): undefined
reference to `mpi_reduce_'
C:\DOCUME~1\ALEXIS~1.BE~\LOCALS~1\Temp\ccf23b32.o:fpi.f:(.text+0x3f6): undefined
reference to `mpi_finalize_'
collect2: ld returned 1 exit status
I have no g77 compiler command.
I've the same error when I try to compile with g95.
Regards,
Alexis BERNARD
Le 26/09/2012 18:21, > Jayesh Krishna (par Internet) a écrit :
Hi,
Are you able to compile with g77 ?
I would recommend that you first try compiling a simple MPI program (c:\Program Files\MPICH2\examples\fpi.f) before proceeding with building the software package.
Regards,
Jayesh
----- Original Message -----
From: "\"BERNARD Alexis - CETE Ouest/DLRB/Risques Naturel - Géophysique\"" <alexis.bernard at developpement-durable.gouv.fr> To: mpich-discuss at mcs.anl.gov Sent: Wednesday, September 26, 2012 11:11:20 AM
Subject: [mpich-discuss] Compatibility of MPICH with gfortran under windows
Hi,
I'm new user of MPICH2 that I need in order to compile a parallel version of Telemac modeling system.
I have an issue when compiling the source code of Telemac under windows xp 32 bits with gfortran.
I have tried to compile with the binary distribution of MPICH2 for windows but the library doesn't seem to be compatible with gfortran. I would like to know if I can build MPICH2 from the sources with a fortran compiler (but no intel fortran - it may be gfortran or g95) ?
Any help will be appreciated,
Thanks in advance,
More information about the mpich-discuss
mailing list