[vtkusers] vtkMPI SetNumberOfProcesses

Reicht, Ignaz i.reicht at Dkfz-Heidelberg.de
Fri Jun 24 14:17:53 EDT 2011


Hi there,

Something I figured out about VTK_MPI and OSX10.6 Machines. The OSX installed openMPI version is not capable  to execute MPI testings or examples provided by VTK. With OSX10.6 comes openMPI version 1.2.8 configured for x86_64-apple-darwin10.0.

To make VTK_MPI run on OSX10.6 machines take the latest stable openMPI version (I used v1.4.3 build for x86_64-apple-darwin10.7.0, enabled OSX64bit kernel extensions). In my previous vtk build the MPIEXEC path was set to the OSX included mpiexec instead of the fresh build one *shame on me*.

when executing "mpiexec -np 2 TestMPIController" finally 2 processes are printed out :-). But when trying to run TestMPIController in XCode Debug-mode, only 1 process is used. Maybe someone knows how to adjust settings in XCode to enable more than just 1 process for MPI.

sorry for all that confusion!
iggy

On Jun 24, 2011, at 5:53 PM, Reicht, Ignaz wrote:

> Hi Dominik, 
> 
> actually the app starts directly in XCode. Further, when running "TestMPIController" in the vtk-build/bin directory the output for processes still remains to 1.  Could someone else run this test and post the output, please. here is my output with following error:
> 
> vtkBin/bin]: ./TestMPIController 
> **** Random Seed = 1308915324 ****
> Exercising vtkMPIController, 1 processes
> ...
> ...
> ---- Exercising vtkPolyData
> Basic send and receive with vtkDataObject.
> Send and receive vtkDataObject with ANY_SOURCE as source.
> Broadcast with vtkDataObject
> [mbimac04:43120] *** Process received signal ***
> [mbimac04:43120] Signal: Segmentation fault (11)
> [mbimac04:43120] Signal code: Address not mapped (1)
> [mbimac04:43120] Failing at address: 0x0
> [mbimac04:43120] [ 0] 2   libSystem.B.dylib                   0x00007fff84cac66a _sigtramp + 26
> [mbimac04:43120] [ 1] 3   ???                                 0x0000000102f00000 0x0 + 4344250368
> [mbimac04:43120] [ 2] 4   libmpi.0.dylib                      0x0000000100385963 ompi_comm_set + 355
> [mbimac04:43120] [ 3] 5   libmpi.0.dylib                      0x0000000100386591 ompi_comm_create + 161
> [mbimac04:43120] [ 4] 6   libmpi.0.dylib                      0x00000001003b0160 MPI_Comm_create + 160
> [mbimac04:43120] [ 5] 7   libvtkParallel.5.6.dylib            0x00000001001eeeb4 _ZN18vtkMPICommunicator10InitializeEP15vtkProcessGroup + 1942
> [mbimac04:43120] [ 6] 8   libvtkParallel.5.6.dylib            0x00000001001f3c49 _ZN16vtkMPIController19CreateSubControllerEP15vtkProcessGroup + 47
> [mbimac04:43120] [ 7] 9   TestMPIController                   0x000000010000f6d3 _Z30ExerciseMultiProcessControllerP25vtkMultiProcessController + 422
> [mbimac04:43120] [ 8] 10  TestMPIController                   0x0000000100009e77 main + 94
> [mbimac04:43120] [ 9] 11  TestMPIController                   0x0000000100009ce0 start + 52
> [mbimac04:43120] *** End of error message ***
> Segmentation fault
> 
> Guess I have to go more deeper into MPI and openMP and openMPI. probably I mixed up MPI and openMP too much. But still, please post your outputs of the test "TestMPIController". 
> OSX64 kernel extensions are enabled.
> 
> thank you
> iggy
> 
> 
> 
> 
> 
> On Jun 21, 2011, at 11:36 AM, Dominik Szczerba wrote:
> 
>> Do you start your app with something like "mpiexec -np 4 ...."?
>> 
>> Dominik
>> 
>> On Mon, Jun 20, 2011 at 7:46 PM, Reicht, Ignaz
>> <i.reicht at dkfz-heidelberg.de> wrote:
>>> Dear vtkusers,
>>> 
>>> Somehow I can not set the number of processes in VTK. In cmake config VTK_USE_MPI is enabled and both, MPIEXEC_MAX_NUMPROCS and VTK_MPI_MAX_NUMPROCS are set to value 2. (also tried to set this value to 8, but no change in behavour).
>>> 
>>> When calling GetNumberOfProcesses() of vtkMPIController the returned value is 1.
>>> I am using XCode on an iMac Core-i7 (4 physical + 4 virtual threads). Also in XCode option "support openMP" is enabled. I just want to use it on my local machine, not distributed on different computers.
>>> 
>>> Can someone tell me how to set this up right to use multiple processes in vtk?
>>> thanks
>>> iggy
>>> 
>>> 
>>> _______________________________________________
>>> 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




More information about the vtkusers mailing list