UnitTest's Charm++ main chare and main().
UnitTest's Charm++ main chare and main(). This file contains the definition of the Charm++ main chare, equivalent to main() in Charm++- land, running the serial and Charm++ unit tests as well as the ordinary main() function, running the MPI unit test suite.
- namespace unittest
- UnitTest declarations and definitions.
int main(int argc, char** argv)
UnitTest does have a main() function so that we can have tests calling MPI functions. Thus we are using Charm++'s MPI-interoperation capability as would have to be done with interoperation with an MPI library. This is necessary, since MPI_Init() is a bit adamant about capturing resources it wants and hence it has to be called before Charm is initialized.