[vtkusers] getting vtkPProbeFilter to use multiple CPU's

Aashish Chaudhary aashish.chaudhary at kitware.com
Tue Jun 12 17:37:00 EDT 2012


can you add

if(VTK_USE_MPI)
  include_directories(${VTK_MPI_INCLUDE_DIR})
endif()


On Tue, Jun 12, 2012 at 4:55 PM, Brian Curtis
<bcurtis3 at masonlive.gmu.edu> wrote:
> in CMakeLists.txt:
>
> find_package (MPI REQUIRED)
> if (MPI_FOUND)
>  include_directories(${MPI_INCLUDE_DIRS})
>  target_link_libraries(InterpPoints ${MPI_LIBRARIES})
> endif (MPI_FOUND)
>
> when using ccmake . i get:
>  CDF_INCLUDE_DIR
>  /home/bcurtis/Desktop/Dissertation/Difference...
>  CDF_LIBRARY
>  /home/bcurtis/Desktop/Dissertation/Difference...
>  CMAKE_BUILD_TYPE                 debug
>  CMAKE_INSTALL_PREFIX             /usr/local
>  MPI_EXTRA_LIBRARY
>  /usr/lib/openmpi/lib/libmpi.so;/usr/lib/openm...
>  MPI_LIBRARY                      /usr/lib/openmpi/lib/libmpi_cxx.so
>  VTK_DIR                          /usr/local/lib/vtk-5.10
>  file_cmd                         /usr/bin/file
>
> with #include <vtkMPIController.h> in program:
> [100%] Building CXX object CMakeFiles/InterpPoints.dir/InterpPoints.cxx.o
> /home/bcurtis/Desktop/Dissertation/Differences/InterpPoints.cxx:6:30: fatal
> error: vtkMPIController.h: No such file or directory
> compilation terminated.
>
> IDK past this what might have gone wrong. I re-ran ccmake . and made sure
> that saw the MPI libraries.
>
> Thanks,
> ~Brian
>
>
> On 06/12/2012 04:14 PM, Jochen K. wrote:
>>
>> Hi Brian,
>>
>> did you recognize this test app?
>>
>> http://vtk.org/gitweb?p=VTK.git;a=blob;f=Parallel/MPI/Testing/Tcl/TestPProbe.tcl
>>
>> http://vtk.org/gitweb?p=VTK.git;a=blob;f=Parallel/MPI/Testing/Tcl/TestPProbe.tcl
>>
>> Maybe it helps a bit to get an idea on how to do this.
>>
>> with kind regards
>> Jochen
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/getting-vtkPProbeFilter-to-use-multiple-CPU-s-tp5713829p5713832.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com



More information about the vtkusers mailing list