[Paraview-developers] MPI_Init during standalone ParaView operation

Biddiscombe, John A. biddisco at cscs.ch
Thu Oct 29 11:32:07 EDT 2009


Fabian


reusing the sim's mpi_world and need to have that shared into paraview's stuff?  Or is it using something else?
The sim's communicator is joined to the app's communicator using an  MPI_accept / MPI_Connect pair where the app calls accpt and the sim connects - via the dsm.  Any old communicator will do me on the app side, so lojng as paraview runs. It's really because debug/testing is too slow when you have to init pvservers and attach debuggers and wotnot. Much easier to run standalone.
Otherwise, I think the paraview client initializes the global controller with Dummy, but I think perhaps you could safely replace that when you detect the need by initializing a new MPIController and SetGlobalController().

OK. I tried MPI_Init and all is well, then I create a new controller and assign it to the DSM manager and setit globally, and all seems to be working. The DSM is not doing what it is supposed to, but the app is not crashing, so I think paraview is fooled "enough". If I can fix the DSM to work as it is, then I'm happy. Thanks for the pointers.
JB
NB. MPI_Init_thread(blah) is not working since we need to start (win32) with "-channel mt" on the command line, so I guess I may need to run as an mpi app anyway <sigh>
      vtkSmartPointer<vtkMPIController> controller = vtkSmartPointer<vtkMPIController>::New();
      controller->Initialize(&argc, &_argv, 1);
      this->SetController(controller);
      vtkMPIController::SetGlobalController(controller);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20091029/5ada806e/attachment.htm>


More information about the Paraview-developers mailing list