Hi Hiral,

You have to add "OMPI_IMPORTS" as a preprocessor definition in you project configuration. Or a easier way is to use the mpicc command line.

Please also take a look into the output of "mpicc --showme", it will give you the complete compile options.


Regards,
Shiqing

On 3/22/2011 10:36 AM, hi wrote:
Hi Shiqing,
 
While building my application (on Windows 7, Vistual Studio 2008 32-bit application) with openmpi-1.5.2, getting following error...
 
util.o : error LNK2001: unresolved external symbol _ompi_mpi_byte
util.o : error LNK2001: unresolved external symbol _ompi_mpi_op_max
util.o : error LNK2001: unresolved external symbol _ompi_mpi_int
util.o : error LNK2001: unresolved external symbol _ompi_mpi_char
util.o : error LNK2001: unresolved external symbol _ompi_mpi_comm_world
util.o : error LNK2001: unresolved external symbol _ompi_mpi_op_sum
Linking options...
/LIBPATH:""c:\openmpi-1.5.2\installed"/lib/" libmpi_cxxd.lib libmpid.lib libmpi_f77d.lib libopen-pald.lib libopen-rted.lib
 
I seems that 'dllexport' is missing for above symbols.
 
Thank you.
-Hiral

 
On Fri, Mar 18, 2011 at 1:53 AM, Shiqing Fan <fan@hlrs.de> wrote:
Hi Hiral,


 
> There is no f90 bindings at moment for Windows.
Any idea when this available?
At moment, no. But only if there is strong requirements.



Regards,
Shiqing

 
Thank you.
-Hiral
 
On Thu, Mar 17, 2011 at 5:21 PM, Shiqing Fan <fan@hlrs.de> wrote:

I tried building openmpi-1.5.2 on Windows 7 (as described below environment) with OMPI_WANT_F77_BINDINGS_ON and
OMPI_WANT_F90_BINDINGS_ON using "ifort".
 
I observed that it has generated mpif77.exe but didn't generated mpif90.exe, any idea???

There is no f90 bindings at moment for Windows.


BTW: while using above generated mpif77.exe to compile hello_f77.f got following errors...
c:\openmpi-1.5.2\examples> mpif77 hello_f77.f
Intel(R) Visual Fortran Compiler Professional for applications running on IA-32,
 Version 11.1    Build 20100414 Package ID: w_cprof_p_11.1.065
Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.
C:/openmpi-1.5.2/installed/include\mpif-config.h(91): error #5082: Syntax error,
 found ')' when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM
_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
      parameter (MPI_STATUS_SIZE=)
---------------------------------^
compilation aborted for hello_f77.f (code 1)
It seems MPI_STATUS_SIZE is not set. Could you please send me your CMakeCache.txt to me off the mailing list, so that I can check what is going wrong? A quick solution would be just set it to 0.


Regards,
Shiqing

Thank you.
-Hiral
 
 
On Wed, Mar 16, 2011 at 8:11 PM, Damien <damien@khubla.com> wrote:
 
Hiral,
 
To add to Shiqing's comments, 1.5 has been running great for me on Windows for over 6 months since it was in beta.  You should give it a try.
 
Damien
 
On 16/03/2011 8:34 AM, Shiqing Fan wrote:
Hi Hiral,
 
 
> it's only experimental in 1.4 series. And there is only F77 bingdings on Windows, no F90 bindings.
Can you please provide steps to build 1.4.3 with experimental f77 bindings on Windows?
Well, I highly recommend to use 1.5 series, but I can also take a look and probably provide you a patch for 1.4 .
 
 
BTW: Do you have any idea on: when next stable release with full fortran support on Windows would be available?
There is no plan yet.
 
 
Regards,
Shiqing
 
 
 
Thank you.
-Hiral
 
On Wed, Mar 16, 2011 at 6:59 PM, Shiqing Fan <fan@hlrs.de> wrote:
 
Hi Hiral,
 
1.3.4 is quite old, please use the latest version. As Damien noted, the full fortran support is in 1.5 series, it's only experimental in 1.4 series. And there is only F77 bingdings on Windows, no F90 bindings. Another choice is to use the released binary installers to avoid compiling everything by yourself.
 
 
Best Regards,
Shiqing
 
On 3/16/2011 11:47 AM, hi wrote:

Greetings!!!

 

I am trying to build openmpi-1.3.4 and openmpi-1.4.3 on Windows 7 (64-bit OS), but getting some difficuty...

 

My build environment:

OS                     : Windows 7 (64-bit)

C/C++ compiler : Visual Studio 2008 and Visual Studio 2010

Fortran compiler: Intel "ifort"

 

Approach: followed the "First Approach" described in README.WINDOWS file.

 

1) Using openmpi-1.3.4:

    Observed build time error in version.cc(136). This error is related to getting SVN version information as described in http://www.open-mpi.org/community/lists/users/2010/01/11860.php. As we are using this openmpi-1.3.4 stable version on Linux platform, is there any fix to this compile time error?

 

2) Using openmpi-1.4.3:

    Builds properly without F77/F90 support (i.e. i.e. Skipping MPI F77 interface).

    Now to get the "mpif*.exe" for fortran programs, I provided proper "ifort" path and enabled "OMPI_WANT_F77_BINDINGS=ON" and/or OMPI_WANT_F90_BINDINGS=ON flag; but getting following errors...

   2.a) "ifort" with OMPI_WANT_F77_BINDINGS=ON gave following errors... 

Check ifort external symbol convention...

Check ifort external symbol convention...single underscore

Check if Fortran 77 compiler supports LOGICAL...

Check if Fortran 77 compiler supports LOGICAL...done

Check size of Fortran 77 LOGICAL...

CMake Error at contrib/platform/win32/CMakeModules/f77_get_sizeof.cmake:76 (MESSAGE):

Could not determine size of LOGICAL.

Call Stack (most recent call first):

contrib/platform/win32/CMakeModules/f77_check.cmake:82 (OMPI_F77_GET_SIZEOF)

contrib/platform/win32/CMakeModules/ompi_configure.cmake:1123 (OMPI_F77_CHECK)

CMakeLists.txt:87 (INCLUDE)

Configuring incomplete, errors occurred!

 

   2.b) "ifort" with OMPI_WANT_F90_BINDINGS=ON gave following errors... 

Skipping MPI F77 interface

CMake Error: File C:/openmpi-1.4.3/contrib/platform/win32/ConfigFiles/mpif90-wrapper-data.txt.cmake does not exist.

CMake Error at ompi/tools/CMakeLists.txt:93 (CONFIGURE_FILE):

configure_file Problem configuring file

CMake Error: File C:/openmpi-1.4.3/contrib/platform/win32/ConfigFiles/mpif90-wrapper-data.txt.cmake does not exist.

CMake Error at ompi/tools/CMakeLists.txt:97 (CONFIGURE_FILE):

configure_file Problem configuring file

looking for ccp...

looking for ccp...not found.

looking for ccp...

looking for ccp...not found.

Configuring incomplete, errors occurred!

 

   2.c) "ifort" with OMPI_WANT_F77_BINDINGS=ON and OMPI_WANT_F90_BINDINGS=ON gave following errors... 

Check ifort external symbol convention...

Check ifort external symbol convention...single underscore

Check if Fortran 77 compiler supports LOGICAL...

Check if Fortran 77 compiler supports LOGICAL...done

Check size of Fortran 77 LOGICAL...

CMake Error at contrib/platform/win32/CMakeModules/f77_get_sizeof.cmake:76 (MESSAGE):

Could not determine size of LOGICAL.

Call Stack (most recent call first):

contrib/platform/win32/CMakeModules/f77_check.cmake:82 (OMPI_F77_GET_SIZEOF)

contrib/platform/win32/CMakeModules/ompi_configure.cmake:1123 (OMPI_F77_CHECK)

CMakeLists.txt:87 (INCLUDE)

Configuring incomplete, errors occurred!

 

Any idea on resolving above errors to get mpif*.exe generated on Windows platform using "ifort"?

 
Please let me know if more information is required.
Thank you in advance.

-Hiral

_______________________________________________ users mailing list users@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: fan@hlrs.de
_______________________________________________ users mailing list users@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: fan@hlrs.de
_______________________________________________ users mailing list users@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
 
 
_______________________________________________ users mailing list users@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: fan@hlrs.de

_______________________________________________ users mailing list users@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: fan@hlrs.de

_______________________________________________ users mailing list users@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: fan@hlrs.de