程序包 mpi

类 GraphComm

所有已实现的接口:
Cloneable, Freeable

public final class GraphComm extends Intracomm
Communicator with graph structure.
  • 构造器详细资料

    • GraphComm

      protected GraphComm(long handle) throws MPIException
      抛出:
      MPIException
    • GraphComm

      protected GraphComm(long[] commRequest)
  • 方法详细资料

    • clone

      public GraphComm clone()
      Duplicates this communicator.

      Java binding of MPI_COMM_DUP.

      It is recommended to use dup() instead of clone() because the last can't throw an MPIException.

      覆盖:
      clone 在类中 Intracomm
      返回:
      copy of this communicator
    • dup

      public GraphComm dup() throws MPIException
      Duplicates this communicator.

      Java binding of MPI_COMM_DUP.

      覆盖:
      dup 在类中 Intracomm
      返回:
      copy of this communicator
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • iDup

      public GraphComm iDup() throws MPIException
      Duplicates this communicator.

      The new communicator can't be used before the operation completes. The request object must be obtained calling Comm.getRequest().

      Java binding of MPI_COMM_IDUP.

      覆盖:
      iDup 在类中 Intracomm
      返回:
      copy of this communicator
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • dupWithInfo

      public GraphComm dupWithInfo(Info info) throws MPIException
      Duplicates this communicator with the info object used in the call.

      Java binding of MPI_COMM_DUP_WITH_INFO.

      覆盖:
      dupWithInfo 在类中 Intracomm
      参数:
      info - info object to associate with the new communicator
      返回:
      copy of this communicator
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getDims

      public GraphParms getDims() throws MPIException
      Returns graph topology information.

      Java binding of the MPI operations MPI_GRAPHDIMS_GET and MPI_GRAPH_GET.

      The number of nodes and number of edges can be extracted from the sizes of the index and edges fields of the returned object.

      返回:
      object defining node degress and edges of graph
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getNeighbors

      public int[] getNeighbors(int rank) throws MPIException
      Provides adjacency information for general graph topology.

      Java binding of the MPI operations MPI_GRAPH_NEIGHBORS_COUNT and MPI_GRAPH_NEIGHBORS.

      The number of neighbors can be extracted from the size of the result.

      参数:
      rank - rank of a process in the group of this communicator
      返回:
      array of ranks of neighbouring processes to one specified
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getDistGraphNeighbors

      public DistGraphNeighbors getDistGraphNeighbors() throws MPIException
      Gets the adjacency information for a distributed graph topology.
      返回:
      adjacency information for a distributed graph topology
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • map

      public int map(int[] index, int[] edges) throws MPIException
      Compute an optimal placement.

      Java binding of the MPI operation MPI_GRAPH_MAP.

      The number of nodes is taken to be size of the index argument.

      参数:
      index - node degrees
      edges - graph edges
      返回:
      reordered rank of calling process
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.