Esempio n. 1
0
int do_comm(const std::vector<char *> &arg, MPI_Comm mpi_comm)
{
    IceTCommunicator comm = icetCreateMPICommunicator(mpi_comm);
    IceTContext context = icetCreateContext(comm);
    icetDestroyMPICommunicator(comm);

    int result = SimpleTiming(arg.size(), &arg.at(0));

    icetDestroyContext(context);

    return result;
}
// ****************************************************************************
//  Method: IceTNetworkManager destructor
//
//  Programmer: Tom Fogal
//  Creation:   June 17, 2008
//
// ****************************************************************************
IceTNetworkManager::~IceTNetworkManager(void)
{
    ICET(icetDestroyContext(this->context));
    ICET(icetDestroyMPICommunicator(this->comm));
}