Re: [OMPI users] Fortran support on Windows Open-MPI
Compaq Visual Fortan for Windows was out, but HP aquired Compaq. HP, later deciding they did not want it, along with the Alpha processor techonology, sold them to Intel. So now it's Intel Visual Fortran Compiler for Windows. In addition, if you don't want that package, instead they do sell a plug-in for Microsoft Visual Studio. There is also a HPC/Parallel enviroment too for Visual Studio, but none of these are cheap. I don't see why you can't include Open MPI libraries in that enviroment. Trent -Original Message- From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On Behalf Of Damien Sent: Thursday, May 06, 2010 10:53 PM To: us...@open-mpi.org Subject: [OMPI users] Fortran support on Windows Open-MPI Hi all, Can anyone tell me what the plans are for Fortran 90 support on Windows, with say the Intel compilers? I need to get MUMPS built and running using Open-MPI, with Visual Studio and Intel 11.1. I know Fortran isn't part of the regular CMake build for Windows. If someone's working on this I'm happy to test or help out. Damien ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] Fortran support on Windows Open-MPI
On 5/6/2010 9:07 PM, Trent Creekmore wrote: Compaq Visual Fortan for Windows was out, but HP aquired Compaq. HP, later deciding they did not want it, along with the Alpha processor techonology, sold them to Intel. So now it's Intel Visual Fortran Compiler for Windows. In addition, if you don't want that package, instead they do sell a plug-in for Microsoft Visual Studio. There is also a HPC/Parallel enviroment too for Visual Studio, but none of these are cheap. I don't see why you can't include Open MPI libraries in that enviroment. Trent -Original Message- From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On Behalf Of Damien Sent: Thursday, May 06, 2010 10:53 PM To: us...@open-mpi.org Subject: [OMPI users] Fortran support on Windows Open-MPI Hi all, Can anyone tell me what the plans are for Fortran 90 support on Windows, with say the Intel compilers? I need to get MUMPS built and running using Open-MPI, with Visual Studio and Intel 11.1. I know Fortran isn't part of the regular CMake build for Windows. If someone's working on this I'm happy to test or help out. Damien ___ I'm not certain whether the top-post is intended as a reply to the original post, but I feel I must protest efforts to add confusion. Looking at the instructions for building on Windows, it appears that several routes have been taken with reported success, not including commercial Fortran. It seems it should not be a major task to include gfortran in the cygwin build. HP never transferred ownership of Compaq Fortran, not that it's relevant to the discussion. The most popular open source MPI for commercial Windows Fortran has been Argonne MPICH2, which offers a pre-built version compatible with Intel Fortran. Intel also offers MPI, derived originally from Argonne MPICH2, for both Windows and linux. I can't imagine OpenMPI libraries being added to the Microsoft HPC environment; maybe that's not exactly what the top poster meant. -- Tim Prince
Re: [OMPI users] Fortran support on Windows Open-MPI
Hi Damien, Currently only Fortran 77 bindings are supported in Open MPI on Windows. You could set the Intel Fortran compiler with CMAKE_Fortran_COMPILER variable in CMake (the full path to ifort.exe), and enable OMPI_WANT_F77_BINDINGS option for Open MPI, then everything should be compiled. I recommend to use Open MPI trunk or 1.5 branch version. I have successfully compiled/ran NPB benchmark with f77 bindings on Windows. If you want to compile f90 programs, this should also be possible, but it needs a little modification in the config file. Please let me know if I can help. Regards, Shiqing On 2010-5-7 5:52 AM, Damien wrote: Hi all, Can anyone tell me what the plans are for Fortran 90 support on Windows, with say the Intel compilers? I need to get MUMPS built and running using Open-MPI, with Visual Studio and Intel 11.1. I know Fortran isn't part of the regular CMake build for Windows. If someone's working on this I'm happy to test or help out. Damien ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- -- Shiqing Fan http://www.hlrs.de/people/fan High Performance Computing Tel.: +49 711 685 87234 Center Stuttgart (HLRS)Fax.: +49 711 685 65832 Address:Allmandring 30 email: f...@hlrs.de 70569 Stuttgart
Re: [OMPI users] Fortran support on Windows Open-MPI
Thanks Shiqing. I'll try that. I'm not sure which bindings MUMPS uses, I'll post back if I need F90. My apologies for not asking a clearer question, when I said Fortran 90 support on Windows, I meant Open MPI, not compilers. Damien On 07/05/2010 3:09 AM, Shiqing Fan wrote: Hi Damien, Currently only Fortran 77 bindings are supported in Open MPI on Windows. You could set the Intel Fortran compiler with CMAKE_Fortran_COMPILER variable in CMake (the full path to ifort.exe), and enable OMPI_WANT_F77_BINDINGS option for Open MPI, then everything should be compiled. I recommend to use Open MPI trunk or 1.5 branch version. I have successfully compiled/ran NPB benchmark with f77 bindings on Windows. If you want to compile f90 programs, this should also be possible, but it needs a little modification in the config file. Please let me know if I can help. Regards, Shiqing On 2010-5-7 5:52 AM, Damien wrote: Hi all, Can anyone tell me what the plans are for Fortran 90 support on Windows, with say the Intel compilers? I need to get MUMPS built and running using Open-MPI, with Visual Studio and Intel 11.1. I know Fortran isn't part of the regular CMake build for Windows. If someone's working on this I'm happy to test or help out. Damien ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] Fortran support on Windows Open-MPI
Hi, I tried the 1.5a1r23092 snapshot and I used CMAKE 2.6.4 and 2.8.1. In the CMake GUI, I checked the OMPI_WANT_F77_BINDINGS option, and added a FilePath for CMAKE_Fortran_COMPILER of C:/Program Files (x86)/Intel/Compiler/11.1/065/bin/ia32/ifort.exe. When I re-run the Configure, CMake wipes the CMAKE_Fortran_COMPILER variable and complains about a missing Fortran compiler. Any suggestions? Damien On 07/05/2010 3:09 AM, Shiqing Fan wrote: Hi Damien, Currently only Fortran 77 bindings are supported in Open MPI on Windows. You could set the Intel Fortran compiler with CMAKE_Fortran_COMPILER variable in CMake (the full path to ifort.exe), and enable OMPI_WANT_F77_BINDINGS option for Open MPI, then everything should be compiled. I recommend to use Open MPI trunk or 1.5 branch version. I have successfully compiled/ran NPB benchmark with f77 bindings on Windows. If you want to compile f90 programs, this should also be possible, but it needs a little modification in the config file. Please let me know if I can help. Regards, Shiqing On 2010-5-7 5:52 AM, Damien wrote: Hi all, Can anyone tell me what the plans are for Fortran 90 support on Windows, with say the Intel compilers? I need to get MUMPS built and running using Open-MPI, with Visual Studio and Intel 11.1. I know Fortran isn't part of the regular CMake build for Windows. If someone's working on this I'm happy to test or help out. Damien ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] Fortran support on Windows Open-MPI
Hi, Normally, that means a wrong path or incompatible compiler version, e.g. 32 bit vs 64 bit. Shiqing On 2010-5-7 6:54 PM, Damien wrote: nd 2.8.1. In the CMake GUI, I checked the OMPI_WANT_F77_BINDINGS option, and added a FilePath for CMAKE_Fortran_COMPILER of C:/Program Files (x86)/Intel/Compiler/11.1/065/bin/ia32/ifort.exe. When I re-run the Configure, CMake wipes the CMAKE_Fortran_COMPILER variable and complains about a missing Fortran compiler. Any suggestions? -- -- Shiqing Fan http://www.hlrs.de/people/fan High Performance Computing Tel.: +49 711 685 87234 Center Stuttgart (HLRS)Fax.: +49 711 685 65832 Address:Allmandring 30 email: f...@hlrs.de 70569 Stuttgart
Re: [OMPI users] Fortran support on Windows Open-MPI
Interesting. If I add the Fortran compiler as a new entry through the GUI, CMake wipes it. If I use the option to specify the compiler paths manually on Configure, I can add the Fortran compiler in that way and it works. Then there's a compiler error. In orte\mca\odls\process\odls_process_module.c, right at the top, there's static bool odls_process_child_died( pid_t pid, unsigned int timeout, int* exit_status ) { int error; HANDLE handle = OpenProcess( PROCESS_TERMINATE | SYNCHRONIZE, FALSE, (DWORD)pid ); if( 0 == child->pid || INVALID_HANDLE_VALUE == handle ) { error = GetLastError(); /* Let's suppose that the process dissapear ... by now */ return true; } CloseHandle(handle); /* The child didn't die, so return false */ return false; } This line "0 == child->pid" causes a compiler error that tanks the build, because child doesn't exist in that scope. Should that just be "0 == pid", seeing as pid is the argument passed to the function anyway? The build seems fine with this fix. Finally, there's an installation error on mpi_portable_platform.h. That file isn't generated as part of the build, and the installation command is around line 150 of ompi/CMakeLists.txt. If you comment out the installation of that file the installation works correctly. I used the 1.5a1r23092 snapshot for this. Now to make sure it works... Damien On 10/05/2010 4:50 AM, Shiqing Fan wrote: Hi, Normally, that means a wrong path or incompatible compiler version, e.g. 32 bit vs 64 bit. Shiqing On 2010-5-7 6:54 PM, Damien wrote: nd 2.8.1. In the CMake GUI, I checked the OMPI_WANT_F77_BINDINGS option, and added a FilePath for CMAKE_Fortran_COMPILER of C:/Program Files (x86)/Intel/Compiler/11.1/065/bin/ia32/ifort.exe. When I re-run the Configure, CMake wipes the CMAKE_Fortran_COMPILER variable and complains about a missing Fortran compiler. Any suggestions?
Re: [OMPI users] Fortran support on Windows Open-MPI
Hi Damien, That's a known problem. see this ticket https://svn.open-mpi.org/trac/ompi/ticket/2404 . It will be applied into 1.5 branch very soon. But if you apply the patch by yourself, it should also work. Thanks, Shiqing On 2010-5-10 10:08 PM, Damien wrote: Interesting. If I add the Fortran compiler as a new entry through the GUI, CMake wipes it. If I use the option to specify the compiler paths manually on Configure, I can add the Fortran compiler in that way and it works. Then there's a compiler error. In orte\mca\odls\process\odls_process_module.c, right at the top, there's static bool odls_process_child_died( pid_t pid, unsigned int timeout, int* exit_status ) { int error; HANDLE handle = OpenProcess( PROCESS_TERMINATE | SYNCHRONIZE, FALSE, (DWORD)pid ); if( 0 == child->pid || INVALID_HANDLE_VALUE == handle ) { error = GetLastError(); /* Let's suppose that the process dissapear ... by now */ return true; } CloseHandle(handle); /* The child didn't die, so return false */ return false; } This line "0 == child->pid" causes a compiler error that tanks the build, because child doesn't exist in that scope. Should that just be "0 == pid", seeing as pid is the argument passed to the function anyway? The build seems fine with this fix. Finally, there's an installation error on mpi_portable_platform.h. That file isn't generated as part of the build, and the installation command is around line 150 of ompi/CMakeLists.txt. If you comment out the installation of that file the installation works correctly. I used the 1.5a1r23092 snapshot for this. Now to make sure it works... Damien On 10/05/2010 4:50 AM, Shiqing Fan wrote: Hi, Normally, that means a wrong path or incompatible compiler version, e.g. 32 bit vs 64 bit. Shiqing On 2010-5-7 6:54 PM, Damien wrote: nd 2.8.1. In the CMake GUI, I checked the OMPI_WANT_F77_BINDINGS option, and added a FilePath for CMAKE_Fortran_COMPILER of C:/Program Files (x86)/Intel/Compiler/11.1/065/bin/ia32/ifort.exe. When I re-run the Configure, CMake wipes the CMAKE_Fortran_COMPILER variable and complains about a missing Fortran compiler. Any suggestions? -- -- Shiqing Fan http://www.hlrs.de/people/fan High Performance Computing Tel.: +49 711 685 87234 Center Stuttgart (HLRS)Fax.: +49 711 685 65832 Address:Allmandring 30 email: f...@hlrs.de 70569 Stuttgart
Re: [OMPI users] Fortran support on Windows Open-MPI
Ah. So it is. I'll try to remember to look there first. Damien On 10/05/2010 2:33 PM, Shiqing Fan wrote: Hi Damien, That's a known problem. see this ticket https://svn.open-mpi.org/trac/ompi/ticket/2404 . It will be applied into 1.5 branch very soon. But if you apply the patch by yourself, it should also work. Thanks, Shiqing
Re: [OMPI users] Fortran support on Windows Open-MPI
I ended up using the SVN Trunk from today, everything is working fine on that. Damien On 10/05/2010 2:33 PM, Shiqing Fan wrote: Hi Damien, That's a known problem. see this ticket https://svn.open-mpi.org/trac/ompi/ticket/2404 . It will be applied into 1.5 branch very soon. But if you apply the patch by yourself, it should also work. Thanks, Shiqing