[mpich-discuss] OSG and MPI

Sebastien.GERIN at ensam.eu Sebastien.GERIN at ensam.eu
Fri Sep 23 03:45:00 CDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110923/5d129f1f/attachment.htm>


More information about the mpich-discuss mailing list