Exemplo 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;
}
Exemplo n.º 2
0
// ****************************************************************************
//  Method: IceTNetworkManager destructor
//
//  Programmer: Tom Fogal
//  Creation:   June 17, 2008
//
// ****************************************************************************
IceTNetworkManager::~IceTNetworkManager(void)
{
    ICET(icetDestroyContext(this->context));
    ICET(icetDestroyMPICommunicator(this->comm));
}