[vtkusers] VTK + openMPI + CMake

Matthias Härtel metty87 at googlemail.com
Mon Nov 26 13:14:31 EST 2012


Am 26.11.2012 19:01, schrieb Kevin H. Hobbs:
> On 11/26/2012 12:06 PM, Matthias Härtel wrote:
>
>> //MPI compiler. Used only to detect MPI compilation flags.
>> MPI_COMPILER:FILEPATH=C:/Program Files (x86)/OpenMPI_v1.6-x64/bin/mpic++.exe
>>
> What does "mpic++ -showme hello.cxx" say? (Or is it more like
> "mpic++.exe /showme hello.cxx" on windows?)

cl.exe hello.cxx /I"C:\OpenMPI_v1.6-win32\bin/../include" /TP /EHsc 
/DOMPI_IMPOR
TS /DOPAL_IMPORTS /DORTE_IMPORTS /link 
/LIBPATH:"C:\OpenMPI_v1.6-win32\bin/../li
b" libmpi_cxx.lib libmpi.lib libopen-pal.lib libopen-rte.lib 
advapi32.lib Ws2_32
.lib shlwapi.lib

>> //MPI include path
>> MPI_INCLUDE_PATH:STRING="C:\Program;Files;(x86)\OpenMPI_v1.6-x64/include"
> This is a very strange path.

the path is quite ok i think... iam actually install openMPI to 
C:\OpenMPI\... so there is still the same error

>
>> //MPI library to link against
>> MPI_LIBRARY:FILEPATH=NOTFOUND
>>
> Are the libraries actually there?
>
> I have:
> MPI_CXX_LIBRARIES:STRING=/usr/lib64/openmpi/lib/libmpi_cxx.so;/usr/lib64/openmpi/lib/libmpi.so;/usr/lib64/libdl.so
>
> So if you have to set MPI_LIBRARY manually just add everything that
> mpic++ does separated by ';'.
>

All the libraries are there in openMPI\lib.


I search also by my self again, and found something new, so that i can 
compile without errors.
http://comments.gmane.org/gmane.comp.clustering.open-mpi.user/16878

with this:
C/C++ -> Preprocessor-> Preprocessor Definitions:
OMPI_IMPORTS

its working now!



thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121126/1859b644/attachment.htm>


More information about the vtkusers mailing list