[vtkusers] vtkMPI SetNumberOfProcesses

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


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
>> 
>> 




More information about the vtkusers mailing list