Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Hi Fabien, I've done some tests these days. g95 works with Open MPI 1.4.3, you need to start the cmake-gui from a Visual Studio command prompt in order to grand all correct environment settings, then after the first time configuration, set CMAKE_Fortran_COMPILER to the path of g95.exe, and enable OMPI_F77_BINDINGS option. The F90 bindings are not supported yet. Regards, Shiqing On Friday, September 02, 2011 12:30:31 AM, Fabien wrote: Hi, Thanks for your answers. - I encountered some errors with MinGW makefiles on "trunk". - So, I dived into VS_Express_2010 makefiles and only specified Mingw/gfortran as compiler. (I'm not sure : should I choose CMAKE_Fortran_COMPILER:FILEPATH=C:/MinGW/bin/gfortran.exe or mingw32-gfortran.exe?) + But, configuring with F77+F90 bindings leads to this error : CMake Error at contrib/platform/win32/CMakeModules/f77_get_sizeof.cmake:86 (MESSAGE): Could not determine size of CHARACTER. Call Stack (most recent call first): contrib/platform/win32/CMakeModules/f77_check.cmake:60 (OMPI_F77_GET_SIZEOF) contrib/platform/win32/CMakeModules/ompi_configure.cmake:637 (OMPI_F77_CHECK) CMakeLists.txt:99 (BEGIN_CONFIGURE) + When disabling F77 bindings and only keeping F90 bindings, I was able to configure/build/install but no "mpif90" are installed in OUTPUT_PATH. Only C-like. I suppose that F77 is then mandatory but what about this error...? Should I give a try with G95 instead? Thanks for your attention& Best regards, Fabien Decung -Message d'origine- De : Jeff Squyres [mailto:jsquy...@cisco.com] Envoyé : mercredi 31 août 2011 14:30 À : f...@hlrs.de; Open MPI Users Cc : Fabien Objet : Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday' Shiqing -- Do you want to add this kind of info to the FAQ? I seem to recall that the gettimeofday question has come up before...? On Aug 31, 2011, at 8:27 AM, Shiqing Fan wrote: Hi Fabien, The GCC build under MinGW is not supported in Open MPI 1.4.3. The initial support is now in trunk, but needs more test. Actually, you may also try building 1.4.3 with Visual Studio Express with Fortran bindings for gfortran. Just configure the solution for Visual Studio, and specify the fortran compiler full path and name in variable CMAKE_Fortran_COMPILER. Please try it out. It worked for me before. Regards, Shiqing On 2011-08-30 11:45 PM, Fabien wrote: Hello, I’m trying to compile Open-MPI 1.4.3 using {MinGW;CMake} on a Vista-32-Bits. I’m interested in running in parallel a fortran program (compiled with C:\MINGW\bin\gfortran.exe ) I’m aware that a binary package has been released but – unfortunately – it has been configured with the Intel compiler (ifort). So, I configured and generated solution with MinGW makefiles and Native compilers. Then compiling the generated solutions with mingw32-make leads to the following errors : 1/ config.h is requested in …openmpi-1.4.3\opal\event but not found. ð Solved by adding config.h from …openmpi-1.4.3\opal\event\WIN32-Code 2/ Then : error: redefinition of `struct timezone' … error: conflicting types for 'gettimeofday' … error: conflicting types for 'gettimeofday' ð Any idea would be more than welcome. I’m aware that it has been addressed before in http://www.open-mpi.org/community/lists/users/2009/06/9622.php. 3/ I also tried to try mingw32-gcc/g++/gfortran.exe compilers. Without success. 4/ I also tried with Visual Studio 2010 without success. I only have Visual Studio C++ Express… ð Will I be able to build mpif90/mpif77/orterun/mpirun with these Visual Studio makefiles coupled with MinGW compilers? Thanks for your attention& Best regards, Fabien Decung Configurations& Tools : - Open-MPI : 1.4.3 - MinGW : latest stable (08/2011), using GCC 4.5.2& C:\MINGW\bin has correctly been updated in PATH. - CMake : 2.8.3 - ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- --- Shiqing Fan High Performance Computing Center Stuttgart (HLRS) Tel: ++49(0)711-685-87234 Nobelstrasse 19 Fax: ++49(0)711-685-65832 70569 Stuttgart http://www.hlrs.de/organization/people/shiqing-fan/ email: f...@hlrs.de ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Hi, Thanks for your answers. - I encountered some errors with MinGW makefiles on "trunk". - So, I dived into VS_Express_2010 makefiles and only specified Mingw/gfortran as compiler. (I'm not sure : should I choose CMAKE_Fortran_COMPILER:FILEPATH=C:/MinGW/bin/gfortran.exe or mingw32-gfortran.exe?) + But, configuring with F77+F90 bindings leads to this error : CMake Error at contrib/platform/win32/CMakeModules/f77_get_sizeof.cmake:86 (MESSAGE): Could not determine size of CHARACTER. Call Stack (most recent call first): contrib/platform/win32/CMakeModules/f77_check.cmake:60 (OMPI_F77_GET_SIZEOF) contrib/platform/win32/CMakeModules/ompi_configure.cmake:637 (OMPI_F77_CHECK) CMakeLists.txt:99 (BEGIN_CONFIGURE) + When disabling F77 bindings and only keeping F90 bindings, I was able to configure/build/install but no "mpif90" are installed in OUTPUT_PATH. Only C-like. I suppose that F77 is then mandatory but what about this error...? Should I give a try with G95 instead? Thanks for your attention & Best regards, Fabien Decung -Message d'origine- De : Jeff Squyres [mailto:jsquy...@cisco.com] Envoyé : mercredi 31 août 2011 14:30 À : f...@hlrs.de; Open MPI Users Cc : Fabien Objet : Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday' Shiqing -- Do you want to add this kind of info to the FAQ? I seem to recall that the gettimeofday question has come up before...? On Aug 31, 2011, at 8:27 AM, Shiqing Fan wrote: > Hi Fabien, > > The GCC build under MinGW is not supported in Open MPI 1.4.3. The initial support is now in trunk, but needs more test. > > Actually, you may also try building 1.4.3 with Visual Studio Express with Fortran bindings for gfortran. Just configure the solution for Visual Studio, and specify the fortran compiler full path and name in variable CMAKE_Fortran_COMPILER. > > Please try it out. It worked for me before. > > > Regards, > Shiqing > > On 2011-08-30 11:45 PM, Fabien wrote: >> Hello, >> >> Im trying to compile Open-MPI 1.4.3 using {MinGW;CMake} on a Vista-32-Bits. Im interested in running in parallel a fortran program (compiled with C:\MINGW\bin\gfortran.exe ) >> Im aware that a binary package has been released but unfortunately it has been configured with the Intel compiler (ifort). >> >> So, I configured and generated solution with MinGW makefiles and Native compilers. >> Then compiling the generated solutions with mingw32-make leads to the following errors : >> 1/ config.h is requested in openmpi-1.4.3\opal\event but not found. >> ð Solved by adding config.h from openmpi-1.4.3\opal\event\WIN32-Code >> 2/ Then : error: redefinition of `struct timezone' error: conflicting types for 'gettimeofday' error: conflicting types for 'gettimeofday' >> ð Any idea would be more than welcome. >> Im aware that it has been addressed before in http://www.open-mpi.org/community/lists/users/2009/06/9622.php. >> >> 3/ I also tried to try mingw32-gcc/g++/gfortran.exe compilers. Without success. >> 4/ I also tried with Visual Studio 2010 without success. I only have Visual Studio C++ Express >> ð Will I be able to build mpif90/mpif77/orterun/mpirun with these Visual Studio makefiles coupled with MinGW compilers? >> >> Thanks for your attention & Best regards, >> >> Fabien Decung >> >> Configurations & Tools : >> - Open-MPI : 1.4.3 >> - MinGW : latest stable (08/2011), using GCC 4.5.2 & C:\MINGW\bin has correctly been updated in PATH. >> - CMake : 2.8.3 >> - >> >> >> ___ >> users mailing list >> >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users > > > -- > --- > Shiqing Fan > High Performance Computing Center Stuttgart (HLRS) > Tel: ++49(0)711-685-87234 Nobelstrasse 19 > Fax: ++49(0)711-685-65832 70569 Stuttgart > > http://www.hlrs.de/organization/people/shiqing-fan/ > > email: > f...@hlrs.de > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
On 2011-08-31 7:26 PM, Jeff Squyres wrote: On Aug 31, 2011, at 1:23 PM, Gus Correa wrote: Hmmm ... maybe it was a mix of both? From the very pen ... er ... keyboard (I-phone?, tablet?) of Jeff Squyres: http://www.open-mpi.org/community/lists/users/2010/10/14463.php Good searching! No, my dim recollection has something to do with functions that are in Windows 7 / 2008 server, but not in XP. Perhaps it wasn't gettimeofday... What Jeff mentioned was related to inet_pton and inet_ntop. The problem in the first email was caused by building Open MPI in MinGW environment, which is not supported yet in 1.4 branch (the testing version is in trunk). Regards, Shiqing -- --- Shiqing Fan High Performance Computing Center Stuttgart (HLRS) Tel: ++49(0)711-685-87234 Nobelstrasse 19 Fax: ++49(0)711-685-65832 70569 Stuttgart http://www.hlrs.de/organization/people/shiqing-fan/ email: f...@hlrs.de
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
On Aug 31, 2011, at 1:23 PM, Gus Correa wrote: > Hmmm ... maybe it was a mix of both? > From the very pen ... er ... keyboard (I-phone?, tablet?) > of Jeff Squyres: > http://www.open-mpi.org/community/lists/users/2010/10/14463.php Good searching! No, my dim recollection has something to do with functions that are in Windows 7 / 2008 server, but not in XP. Perhaps it wasn't gettimeofday... -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Jeff Squyres wrote: On Aug 31, 2011, at 12:13 PM, Gus Correa wrote: Do you want to add this kind of info to the FAQ? I seem to recall that the gettimeofday question has come up before...? Indeed, but often related to the accuracy of the MPI_Wtime clock, IIRR. No, I have a dim recollection that it came up in the context of building on windows. I could be wrong, though. Hmmm ... maybe it was a mix of both? From the very pen ... er ... keyboard (I-phone?, tablet?) of Jeff Squyres: http://www.open-mpi.org/community/lists/users/2010/10/14463.php Anyway, I read messages about MPI_Wtime clock here and in the MPICH list, so I may be confused by the abundance of information. Cheers, Gus
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
On Aug 31, 2011, at 12:13 PM, Gus Correa wrote: >> Do you want to add this kind of info to the FAQ? I seem to recall that the >> gettimeofday question has come up before...? > > Indeed, but often related to the accuracy of the MPI_Wtime clock, IIRR. No, I have a dim recollection that it came up in the context of building on windows. I could be wrong, though. -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Jeff Squyres wrote: Shiqing -- Do you want to add this kind of info to the FAQ? I seem to recall that the gettimeofday question has come up before...? Indeed, but often related to the accuracy of the MPI_Wtime clock, IIRR. Gus Correa On Aug 31, 2011, at 8:27 AM, Shiqing Fan wrote: Hi Fabien, The GCC build under MinGW is not supported in Open MPI 1.4.3. The initial support is now in trunk, but needs more test. Actually, you may also try building 1.4.3 with Visual Studio Express with Fortran bindings for gfortran. Just configure the solution for Visual Studio, and specify the fortran compiler full path and name in variable CMAKE_Fortran_COMPILER. Please try it out. It worked for me before. Regards, Shiqing On 2011-08-30 11:45 PM, Fabien wrote: Hello, I’m trying to compile Open-MPI 1.4.3 using {MinGW;CMake} on a Vista-32-Bits. I’m interested in running in parallel a fortran program (compiled with C:\MINGW\bin\gfortran.exe ) I’m aware that a binary package has been released but – unfortunately – it has been configured with the Intel compiler (ifort). So, I configured and generated solution with MinGW makefiles and Native compilers. Then compiling the generated solutions with mingw32-make leads to the following errors : 1/ config.h is requested in …openmpi-1.4.3\opal\event but not found. ð Solved by adding config.h from …openmpi-1.4.3\opal\event\WIN32-Code 2/ Then : error: redefinition of `struct timezone' … error: conflicting types for 'gettimeofday' … error: conflicting types for 'gettimeofday' ð Any idea would be more than welcome. I’m aware that it has been addressed before in http://www.open-mpi.org/community/lists/users/2009/06/9622.php. 3/ I also tried to try mingw32-gcc/g++/gfortran.exe compilers. Without success. 4/ I also tried with Visual Studio 2010 without success. I only have Visual Studio C++ Express… ð Will I be able to build mpif90/mpif77/orterun/mpirun with these Visual Studio makefiles coupled with MinGW compilers? Thanks for your attention & Best regards, Fabien Decung Configurations & Tools : - Open-MPI : 1.4.3 - MinGW : latest stable (08/2011), using GCC 4.5.2 & C:\MINGW\bin has correctly been updated in PATH. - CMake : 2.8.3 - ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- --- Shiqing Fan High Performance Computing Center Stuttgart (HLRS) Tel: ++49(0)711-685-87234 Nobelstrasse 19 Fax: ++49(0)711-685-65832 70569 Stuttgart http://www.hlrs.de/organization/people/shiqing-fan/ email: f...@hlrs.de ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Shiqing -- Do you want to add this kind of info to the FAQ? I seem to recall that the gettimeofday question has come up before...? On Aug 31, 2011, at 8:27 AM, Shiqing Fan wrote: > Hi Fabien, > > The GCC build under MinGW is not supported in Open MPI 1.4.3. The initial > support is now in trunk, but needs more test. > > Actually, you may also try building 1.4.3 with Visual Studio Express with > Fortran bindings for gfortran. Just configure the solution for Visual Studio, > and specify the fortran compiler full path and name in variable > CMAKE_Fortran_COMPILER. > > Please try it out. It worked for me before. > > > Regards, > Shiqing > > On 2011-08-30 11:45 PM, Fabien wrote: >> Hello, >> >> I’m trying to compile Open-MPI 1.4.3 using {MinGW;CMake} on a Vista-32-Bits. >> I’m interested in running in parallel a fortran program (compiled with >> C:\MINGW\bin\gfortran.exe ) >> I’m aware that a binary package has been released but – unfortunately – it >> has been configured with the Intel compiler (ifort). >> >> So, I configured and generated solution with MinGW makefiles and Native >> compilers. >> Then compiling the generated solutions with mingw32-make leads to the >> following errors : >> 1/ config.h is requested in …openmpi-1.4.3\opal\event but not found. >> ð Solved by adding config.h from …openmpi-1.4.3\opal\event\WIN32-Code >> 2/ Then : error: redefinition of `struct timezone' … error: conflicting >> types for 'gettimeofday' … error: conflicting types for 'gettimeofday' >> ð Any idea would be more than welcome. >> I’m aware that it has been addressed before in >> http://www.open-mpi.org/community/lists/users/2009/06/9622.php. >> >> 3/ I also tried to try mingw32-gcc/g++/gfortran.exe compilers. Without >> success. >> 4/ I also tried with Visual Studio 2010 without success. I only have Visual >> Studio C++ Express… >> ð Will I be able to build mpif90/mpif77/orterun/mpirun with these Visual >> Studio makefiles coupled with MinGW compilers? >> >> Thanks for your attention & Best regards, >> >> Fabien Decung >> >> Configurations & Tools : >> - Open-MPI : 1.4.3 >> - MinGW : latest stable (08/2011), using GCC 4.5.2 & C:\MINGW\bin >> has correctly been updated in PATH. >> - CMake : 2.8.3 >> - >> >> >> ___ >> users mailing list >> >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users > > > -- > --- > Shiqing Fan > High Performance Computing Center Stuttgart (HLRS) > Tel: ++49(0)711-685-87234 Nobelstrasse 19 > Fax: ++49(0)711-685-65832 70569 Stuttgart > > http://www.hlrs.de/organization/people/shiqing-fan/ > > email: > f...@hlrs.de > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
Re: [OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Hi Fabien, The GCC build under MinGW is not supported in Open MPI 1.4.3. The initial support is now in trunk, but needs more test. Actually, you may also try building 1.4.3 with Visual Studio Express with Fortran bindings for gfortran. Just configure the solution for Visual Studio, and specify the fortran compiler full path and name in variable CMAKE_Fortran_COMPILER. Please try it out. It worked for me before. Regards, Shiqing On 2011-08-30 11:45 PM, Fabien wrote: Hello, I'm trying to compile Open-MPI 1.4.3 using {MinGW;CMake} on a Vista-32-Bits. I'm interested in running in parallel _a fortran program_ (compiled with C:\MINGW\bin\gfortran.exe ) I'm aware that a binary package has been released but -- unfortunately -- it has been configured with the Intel compiler (ifort). So, I configured and generated solution with MinGW makefiles and Native compilers. Then compiling the generated solutions with /mingw32-make/ leads to the following errors : 1/ /config.h/ is requested in /...openmpi-1.4.3\opal\event/ but not found. ðSolved by adding /config.h/ from /...openmpi-1.4.3\opal\event\WIN32-Code/ 2/ Then : /error: redefinition of `struct timezone' ... error: conflicting types for 'gettimeofday' ... error: conflicting types for 'gettimeofday'/ ðAny idea would be more than welcome. I'm aware that it has been addressed before in http://www.open-mpi.org/community/lists/users/2009/06/9622.php. 3/ I also tried to try /mingw32-gcc/g++/gfortran.exe/ compilers. Without success. 4/ I also tried with Visual Studio 2010 without success. I only have Visual Studio C++ Express... ðWill I be able to build /mpif90/mpif77/orterun/mpirun/ with these Visual Studio makefiles coupled with MinGW compilers? Thanks for your attention & Best regards, Fabien Decung Configurations & Tools : -Open-MPI : 1.4.3 -MinGW : latest stable (08/2011), using GCC 4.5.2 & /C:\MINGW\bin/ has correctly been updated in /PATH/. -CMake : 2.8.3 - ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- --- Shiqing Fan High Performance Computing Center Stuttgart (HLRS) Tel: ++49(0)711-685-87234 Nobelstrasse 19 Fax: ++49(0)711-685-65832 70569 Stuttgart http://www.hlrs.de/organization/people/shiqing-fan/ email:f...@hlrs.de
[OMPI users] Mingw - Gfortran - Cmake : 'gettimeofday'
Hello, Im trying to compile Open-MPI 1.4.3 using {MinGW;CMake} on a Vista-32-Bits. Im interested in running in parallel a fortran program (compiled with C:\MINGW\bin\gfortran.exe ) Im aware that a binary package has been released but unfortunately it has been configured with the Intel compiler (ifort). So, I configured and generated solution with MinGW makefiles and Native compilers. Then compiling the generated solutions with mingw32-make leads to the following errors : 1/ config.h is requested in openmpi-1.4.3\opal\event but not found. ð Solved by adding config.h from openmpi-1.4.3\opal\event\WIN32-Code 2/ Then : error: redefinition of `struct timezone' error: conflicting types for 'gettimeofday' error: conflicting types for 'gettimeofday' ð Any idea would be more than welcome. Im aware that it has been addressed before in http://www.open-mpi.org/community/lists/users/2009/06/9622.php. 3/ I also tried to try mingw32-gcc/g++/gfortran.exe compilers. Without success. 4/ I also tried with Visual Studio 2010 without success. I only have Visual Studio C++ Express ð Will I be able to build mpif90/mpif77/orterun/mpirun with these Visual Studio makefiles coupled with MinGW compilers? Thanks for your attention & Best regards, Fabien Decung Configurations & Tools : - Open-MPI : 1.4.3 - MinGW : latest stable (08/2011), using GCC 4.5.2 & C:\MINGW\bin has correctly been updated in PATH. - CMake : 2.8.3 -