Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] configuration of openmpi-1.5.4 with visual studio
From: Shiqing Fan (fan_at_[hidden])
Date: 2012-04-16 14:05:33


Hi Jeff,

They are definitions for enabling dllexport/import declarations on Windows, and they existed since the initial version for Cygwin. Normally these definitions are hidden via mpicc command wrapper, but on Windows, when user tries to compile a project in Visual Studio, they have to be added manually.

I think there might be some workaround to get rid of them. Need some time to test.

Regards,
Shiqing

On 2012-04-16 3:48 PM, Jeffrey Squyres wrote:
> Shiqing --
>
> What are these defines? Shouldn't they be invisible when compiling MPI applications?
>
>
>
> On Apr 9, 2012, at 4:13 PM, Shiqing Fan wrote:
>
>> Hi Greg,
>>
>> Glad to hear that it works for you.
>>
>> And yes, these definitions are necessary for compiling any MPI application on Windows.
>>
>>
>> Regards,
>> Shiqing
>>
>> On 2012-04-09 6:12 PM, Greg Blair wrote:
>>> After we had OpenMPI 1.54 working, we moved to OpenMPI 1.55 without incident.
>>>
>>> However, neither 1.54 nor 1.55 would link any reference to comm_world
>>> generated
>>> from C or C++ until we defined the following three compiler defines
>>> 1. OMPI_IMPORTS
>>> 2. OPAL_IMPORTS
>>> 3. ORTE_IMPORTS
>>>
>>> (drill down the MSVC IDE menu system: View Solution Explorer,
>>> Solution explorer, properties, C/C++, Preprocessor, Preprocessor
>>> Definitions and set OMPI_IMPORTS OPAL_IMPORTS and ORTE_IMPORTS)
>>>
>>> On 4/9/12, Greg Blair<greg.blair_at_[hidden]> wrote:
>>>> After we had OpenMPI 1.54 working, we moved to OpenMPI 1.55 without
>>>> incident.
>>>>
>>>> However, neither 1.54 nor 1.55 would link any reference to comm_world
>>>> from C or C++ until we defined the following three compile defines
>>>>
>>
>> --
>> ---------------------------------------------------------------
>> 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_at_[hidden]
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> 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_at_[hidden]