ParaView/VRPN with MS-MPI
From KitwarePublic
< ParaView
Jump to navigationJump to search
ParaView with MS-MPI and VRPN
- Download and install the following support packages:
- MS Visual C++ 2010 Express Edition:
- MS-MPI 2008
- Git for Windows:
- http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git
- Default installation options are fine.
- CMake:
- http://www.cmake.org/files/v2.8/cmake-2.8.10.2-win32-x86.exe
- Install for current user or all users
- Qt 4.8 for MSVC 2010
- Python 2.7
- http://www.python.org/getit/
- Be sure to pick the 2.7 branch, not the 3.x!
- Ninja build system.
- http://martine.github.com/ninja/ for full docs. Short version:
- Install MSVC++ (link above)
- Download and install Python 2.7 (link above)
- Download and install Git for Windows (link above)
- Open “Git Bash” and run the following to checkout ninja’s source code:
- mkdir /c/src # (creates C:\src\)
- cd /c/src
- git clone git://github.com/martine/ninja.git
- Open “Visual Studio 2010 Command Prompt” from the start menu and run the following:
- cd \src\ninja
- \Python27\python.exe bootstrap.py
- The note about Windows file locking can be safely ignored.
- Add C:\src\ninja to the system PATH:
- Open Start menu
- Right click on “My Computer”, select “Properties”
- “Advanced System Settings”
- “Environment Variables”
- Select “Path” in “System variables”
- Add “;C:\src\ninja” to the variable value string.
- Close and reopen any open command prompts for this to take effect.
- VRPN
- In Git Bash, do:
- cd /c/src
- git clone git://git.cs.unc.edu/vrpn.git
- Then in the MSVC command prompt, do
- cd \src\vrpn
- cmake-gui .
- Note: CMake must be launched from the MSVC shell for cmake to detect the compilers correctly.
- In the CMake GUI:
- Set source dir to C:/src/vrpn
- Set binary dir to C:/src/vrpn-bin
- Click “Configure”, use ninja and default compiler
- Make to set the CMAKE_BUILD_TYPE appropriately
- “Configure” again if needed, then “Generate”
- In the MSVC command prompt, do
- cd \src\vrpn-bin
- ninja
- If any errors about python27_d.lib appear, re-run cmake-gui, check the “advanced” option, filter to variables containing “python”, and uncheck all python variables. configure, generate, and build again.
- In Git Bash, do:
- Checkout ParaView source code
- Open git bash
- Enter the following:
- cd /c/src
- git clone git://paraview.org/ParaView.git
- cd ParaView
- git submodule init
- git submodule update
- Configure ParaView
- Run “cmake-gui” from a MSVC 2010 command prompt
- Click “Browse source”, select “C:/src/ParaView”
- Click “Browse build”, create and select “C:/src/ParaView-build”
- Click “Configure”
- Use the “Ninja” generator
- Use the default compilers
- Check the “Advanced” box and set the following options:
PARAVIEW_ENABLE_PYTHON | True |
PARAVIEW_USE_MPI | True |
PARAVIEW_BUILD_QT_GUI | True |
PARAVIEW_BUILD_PLUGIN_VRPlugin | True |
-
- Click “Configure” again. The MPI_* and VR options should now appear. Any *MPI* variables that are not listed below can be left blank. Set the following:
MPI_C_INCLUDE_PATH | C:/Program Files/Microsoft HPC Pack 2008 R2/Inc |
MPI_CXX_INCLUDE_PATH | C:/Program Files/Microsoft HPC Pack 2008 R2/Inc |
MPIEXEC | C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/mpiexec.exe |
VTK_MPIRUN_EXE | C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/mpiexec.exe |
MPI_C_LIBRARIES | C:/Program Files/Microsoft HPC Pack 2008 R2/lib/i386/msmpi.lib |
MPI_CXX_LIBRARIES | C:/Program Files/Microsoft HPC Pack 2008 R2/lib/i386/msmpi.lib |
MPI_LIBRARY | C:/Program Files/Microsoft HPC Pack 2008 R2/lib/i386/msmpi.lib |
PARAVIEW_USE_VRPN | True |
-
- Click “Configure” again. The VRPN options are now available. Set the following options:
VRPN_INCLUDE_DIR | C:/src/vrpn-bin/Headers |
VRPN_LIBRARY | C:/src/vrpn-bin/vrpn.lib |
- Click “Configure”
- Click “Generate”
- Build ParaView
- Open Visual Studio Command Prompt 2010
- Enter the following:
- cd \src\ParaView-build
- ninja
- Running ParaView with MS-MPI
- At this point, you should be able to run ParaView in parallel using the MS mpiexec executable:
"C:\Program Files\Microsoft HPC Pack 2008 R2\Bin\mpiexec.exe" -np 2 C:\src\ParaView-build\bin\pvserver.exe