[warped-users] help: warped2.0 test example
William Voorsluys
william at icmc.usp.br
Sat Sep 11 03:44:39 EDT 2004
Hi,
Besides using the parallel.config file, I had to make some modifications in the
code to make it work with MPICH.
In the file PingPongApplication.cpp, when method getArgumentParser is declared,
I had to add the parameters passed by MPICH to the slave into the arguments
list.
Three lines have been added to make pingpong recognize the parameters
-p4amslave, -p4yourname, -p4rmrank. Otherwise, it will complain. Remember to
declare the variables iamslave, mname, mrank in the .h file.
The code now looks like:
*******
ArgumentParser &
PingPongApplication::getArgumentParser(){
static ArgumentParser::ArgRecord args[] = {
{ "-numBalls", "number of balls", &numEventsPerObject,
ArgumentParser::INTEGER, false },
{ "-numPlayers", "number of simulation objects to pass the balls",
&numObjects, ArgumentParser::INTEGER, false },
{ "-numAtOnce", "number of balls circulating at once", &numBallsAtOnce,
ArgumentParser::INTEGER, false },
{ "-randomDelays", "should the simulation objects wait random amounts of
time", &randomDelays, ArgumentParser::BOOLEAN, false },
{ "-p4amslave", "i am a slave", &iamslave, ArgumentParser::BOOLEAN, false
},
{ "-p4yourname", "machine name", &mname, ArgumentParser::STRING, false },
{ "-p4rmrank", "machine rank", &mrank, ArgumentParser::INTEGER, false },
{ "", "", 0 }
};
*********
When running the parallel version is worth having warped on NFS drive, it helps
a lot.
Here, we're also having many doubts about WARPED. Mainly to the lack of
introductory material and few people to share information. We're seriously
thinking about writing that intro material after mastering the whole system.
:).
Hope it helps.
Regards,
William.
Quoting Lan Chen <l.chen11 at lancaster.ac.uk>:
> I installed Warped2.0. I want to run the pingPong test program, but I don't
> know how to write the the configuration file. Is anyone can give me an
> example of the config file with explanation and an appropriate simulteUntil
> time ? Thanks a lot.
>
> Lan
>
>
More information about the warped-users
mailing list