[Paraview-developers] [Non-DoD Source] Re: Issues building paraview with MPI : unresolved externals

Su, Simon M CIV USARMY RDECOM ARL (US) simon.m.su.civ at mail.mil
Thu Nov 5 10:40:53 EST 2015


We have been using openmpi 1.4.5 as that is the only version of OpenMPI that I am able to compile with VS2013 Express via cmake.

I was told, on windows, the dependency library needs to be compiled with the same compiler (like VS2013 express) that is used to compile ParaView. Is that not the case anymore? Or Jayesh Krishna's MPICH binray is compiled with VS2010 Pro?

thanks
-simon


________________________________
From: Paraview-developers [paraview-developers-bounces at paraview.org] on behalf of Hillier, Michael (NRCan/RNCan) [michael.hillier at canada.ca]
Sent: Thursday, November 05, 2015 10:29 AM
To: 'David E DeMarle'
Cc: paraview-developers at paraview.org
Subject: [Non-DoD Source] Re: [Paraview-developers] Issues building paraview with MPI : unresolved externals

This email was sent from a non-Department of Defense email account, and contained active links. All links are disabled, and require you to copy and paste the address to a Web browser. Please verify the identity of the sender, and confirm authenticity of all links contained within the message.

________________________________


I got this to work using your suggestion.

For anyone else who has this issue I will give the following information that will potentially help others who want to build Paraview with MPI support:

I used Jayesh Krishna’s MPICH binary (v 1.4.1p1 64 bit).
Built Paraview 4.4.0 64 bit using Visual Studio 2010 Professional.

Michael Hillier

From: David E DeMarle [Caution-mailto:dave.demarle at kitware.com]
Sent: Tuesday, November 03, 2015 9:26 PM
To: Hillier, Michael (NRCan/RNCan)
Cc: paraview-developers at paraview.org
Subject: Re: [Paraview-developers] Issues building paraview with MPI : unresolved externals

I have not that version of OpenMPI on windows. I have had good success recently with the unofficial MPICH binary from Jayesh Krishna's (an oldie but a goodie as they say). This was on a Win7 64 system where we linked to it from Visual Studio 2013 62bit desktop express edition.



David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, Nov 3, 2015 at 4:45 PM, Hillier, Michael (NRCan/RNCan) <michael.hillier at canada.ca < Caution-mailto:michael.hillier at canada.ca > > wrote:
Hello,

I am trying to building paraview 4.4 with MPI support using Visual Studio. The libraries of MPI I am using is OpenMPI v1.6.2 x64. In cmake I link all the possible mpi libraries that have in my lib folder for OpenMPI except for the fortran libs. When I build paraview in visual studio (2010 professional) all my errors are unresolved external symbols (. E.g.  LNK2001: unresolved external symbol ompi_mpi_double). I was hoping that someone with some experience with including MPI support into paraview could help me resolve this issue. Are their additional libraries I am missing or do I need to set compilation or linking flags?

Any help is greatly appreciated:)

Michael Hillier

Below are the MPI related portions of my CMakeCache.txt file:

//Cleared
MPI_CXX_COMPILER:FILEPATH=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/bin/mpicxx.exe

//MPI CXX compilation flags
MPI_CXX_COMPILE_FLAGS:STRING=

//MPI CXX include path
MPI_CXX_INCLUDE_PATH:STRING=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/include

//MPI CXX libraries to link against
MPI_CXX_LIBRARIES:STRING=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi_cxx.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi_cxxd.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpid.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-pal.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-pald.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-rte.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-rted.lib

//MPI CXX linking flags
MPI_CXX_LINK_FLAGS:STRING=

//Cleared
MPI_C_COMPILER:FILEPATH=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/bin/mpicc.exe

//MPI C compilation flags
MPI_C_COMPILE_FLAGS:STRING=

//MPI C include path
MPI_C_INCLUDE_PATH:STRING=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/include

//MPI C libraries to link against
MPI_C_LIBRARIES:STRING=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi_cxxd.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpid.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-pal.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-pald.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-rte.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-rted.lib

//MPI C linking flags
MPI_C_LINK_FLAGS:STRING=

//Extra MPI libraries to link against
MPI_EXTRA_LIBRARY:STRING=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi_cxxd.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpid.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-pal.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-pald.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-rte.lib;E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libopen-rted.lib

//MPI library to link against
MPI_LIBRARY:FILEPATH=E:/Program Files (x86)/OpenMPI_v1.6.2-x64/lib/libmpi_cxx.lib

_______________________________________________
Powered by Caution-www.kitware.com < Caution-http://www.kitware.com >

Visit other Kitware open-source projects at Caution-http://www.kitware.com/opensource/opensource.html < Caution-http://www.kitware.com/opensource/opensource.html >

Search the list archives at: Caution-http://markmail.org/search/?q=Paraview-developers < Caution-http://markmail.org/search/?q=Paraview-developers >

Follow this link to subscribe/unsubscribe:
Caution-http://public.kitware.com/mailman/listinfo/paraview-developers < Caution-http://public.kitware.com/mailman/listinfo/paraview-developers >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20151105/e6a13a84/attachment.html>


More information about the Paraview-developers mailing list