Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

icetcopystate(3) [debian man page]

icetCopyState(3)						  IceT Reference						  icetCopyState(3)

NAME
icetCopyState -- copy state machine of one context to another. Synopsis #include <IceT.h> void icetCopyState( IceTContext dest, const IceTContext src ); Description The icetCopyState function replaces the state of dest with the current state of src. This function can be used to quickly duplicate a con- text. The IceTCommunicator object associated with dest is not changed (nor can it ever be). Consequently, the following state values are not copied either, since they refer to process ids that are directly tied to the IceTCommunicator object: ICET_RANK, ICET_NUM_PROCESSES, ICET_DATA_REPLICATION_GROUP, ICET_DATA_REPLICATION_GROUP_SIZE, ICET_COMPOSITE_ORDER, and ICET_PROCESS_ORDERS. However, every other state parameter is copied. Errors None. Warnings None. Bugs The state is copied blindly. It is therefore possible to copy states that are invalid for a context's communicator. For example, a display rank may not refer to a valid process id. Notes Behavior is undefined if dest or src has never been created or has already been destroyed. Copyright Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetCreateContext(3), icetGetContext(3), icetSetContext(3) IceT Reference August 9, 2010 icetCopyState(3)

Check Out this Related Man Page

icetCreateMPICommunicator(3)					  IceT Reference				      icetCreateMPICommunicator(3)

NAME
icetCreateMPICommunicator -- Converts an MPI communicator to an IceT communicator. Synopsis #include <IceTMPI.h> IceTCommunicator icetCreateMPICommunicator( MPI_Comm mpi_comm ); Description IceT requires a communicator in order to perform correctly. An application is free to build its own communicator, but many will simply pre- fer to use MPI, which is a well established parallel communication tool. Thus, IceT comes with an implementation of IceTCommunicator that uses the MPI communication layer underneath. icetCreateMPICommunicator is used to create an IceTCommunicator that uses the mpi_comm MPI communication object. The resulting IceTCommuni- cator shares the same process group and process rank as the original MPI_Comm communicator. mpi_comm is duplicated, which has two consiquences. First, all process in mpi_comm's group may need to call icetCreateMPICommunicator in order for any of them to proceed (depending on the MPI implementation). Second, mpi_comm and the resulting IceTCommunicator are decoupled from each other. Communications in one cannot affect another. Also, one communicator may be destroyed without affecting the other. Return Value An IceTCommunicator with the same process group and rank as mpi_comm. The communicator may be destroyed with a call to icetDestroyMPICom- municator. Errors None. Warnings None. Bugs All MPI errors are ignored. Copyright Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetDestroyMPICommunicator(3), icetCreateContext(3) IceT Reference August 9, 2010 icetCreateMPICommunicator(3)
Man Page