[mpich-discuss] OSG and MPI

Jayesh Krishna jayesh at mcs.anl.gov
Mon Sep 26 09:38:42 CDT 2011


Hi,
 Try using the "-localroot" option of mpiexec (mpiexec -localroot –n 1 mySogApp.exe) and make sure that the viewer is launched from rank 0. Let us know if it works.

Regards,
Jayesh

----- Original Message -----
From: "Sebastien GERIN" <Sebastien.GERIN at ensam.eu>
To: mpich-discuss at mcs.anl.gov
Sent: Friday, September 23, 2011 3:45:00 AM
Subject: [mpich-discuss] OSG and MPI





Hi all, 



I am new to MPI and I am currently trying to make a multi cluster application with MPI and OpenSceneGraph on windows 7. 

I am using MPICH2 for the communication stuff between the cluster's node. 



I built a very simple OSG application, here is the code : 

int processCount, processId; 

MPI_Init(&argc, &argv); 

MPI_Comm_size(MPI_COMM_WORLD, &processCount); 

MPI_Comm_rank(MPI_COMM_WORLD, &processId); 



std::cout << "processes " << processId << " of " << processCount << std::endl; 



osgViewer::Viewer viewer; 

while(!viewer.done()) 

{ 

std::cout << "processes " << processId << " of " << processCount << std::endl; 

viewer.frame(); 

} 

MPI_Finalize(); 



The application works well without the MPI stuff, it just displays a 3D viewer. 



But when I try to launch my app inside the MPI context with the command : mpiexec –n 1 mySogApp.exe 



I’ve got this error : 

Win32WindowingSystem::getScreenInformation() - The screen identifier on the Win32 platform must always use display number 0.because it does not exist 



Does anyone has already try to use OpenSceneGraph and MPI ? Do you have any ideas for this problem ? 



Thank you for any answers 

Cheers 

Sebastien 
_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list