[vtkusers] VTK & MPI
hanan.hassanein at gmail.com
Thu Jul 27 10:16:41 EDT 2006
Among the examples in the path u specified, when i try to run (from the
command line) example like parallelIso.cxx, i got the following error:
MPIRun.exe -np 2 -localonly VTK_MPI.exe
Fatal error; unknown error handler
May be MPI call before MPI_INIT. Error message is MPI_COMM_SIZE and code is
Wait for process 0 to write port to temporary file timed out
any help plz, thanks a lot for the hello world code..
by the way, i am new to vtk..
thanks a lot for your fast response & guiding me..
On 7/27/06, Kevin H. Hobbs <hobbsk at ohiou.edu> wrote:
> On Thu, 2006-07-27 at 14:37 +0300, Hanan Hassanein wrote:
> > Dear all,
> > I tried first using VTKMPI functions, but i couldn't find good
> > online support like functions or so, i just found 1 example on the vtk
> > site named MPIgroups.cxx ( i am using c++ by the way), it wasn't
> > helpful at all, not commented or so..
> Well there are other examples in
> VTK/Examples/ParallelProcessing/Generic/Cxx . You can browse to them on
> the web from the Doxygen documentation by seraching for MPI in the page
> http://www.vtk.org/doc/nightly/html/annotated.html and following the
> "Tests" and "Examples" sections.
> > so, i started to try another way, although i know i am trying to
> > reinvent the wheel, coz i am trying to use both vtk & MPI separately,
> > but i got stuck now in sending vtk objects between processors like
> > vtkactors, coz as u know MPI communication function send/receive
> > objects of type MPI_datatype, eith it's primitive like MPI_Double, or
> > user defined datatype which must be also some combination of MPI
> > primitive datatypes.
> I think this is a very wrong path. VTK objects contain pointers to other
> objects, which would not make sense when sent to another machine.
> Here is a VTK MPI hello world.
> #include "vtkMPIController.h"
> void process(vtkMultiProcessController* controller, void*
> int myId = controller->GetLocalProcessId();
> std::cout << "My process id is ";
> std::cout << myId << "." << std::endl;
> int main( int argc, char* argv )
> vtkMPIController* controller = vtkMPIController::New();
> controller->Initialize(&argc, &argv);
> controller->SetSingleMethod(process, 0);
> return 0;
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.4 (GNU/Linux)
> -----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers