cca-spec-babel  0.8.6-unstable(developer)
Public Member Functions
gov.cca.ports.MPIServer Interface Reference
Inheritance diagram for gov.cca.ports.MPIServer:
Inheritance graph
[legend]
Collaboration diagram for gov.cca.ports.MPIServer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isInitialized ()
 Check instance status.
void initAsService (in long borrowComm, in long dupComm, inout gov.cca.AbstractFramework af) throws gov.cca.CCAException
 Create and add to the framework MPIService and MPIBorrow support services.
void initComponent (in long borrowComm, in long dupComm)
 Set the communicators on an uninitialized mpi support component instance created like any other.
void finalize (in bool reclaim) throws gov.cca.CCAException
 Shutdown the previous mpi-related services.

Member Function Documentation

void gov.cca.ports.MPIServer.finalize ( in bool  reclaim) throws gov.cca.CCAException

Shutdown the previous mpi-related services.

Parameters:
reclaimif reclaim true, try to release communicator resources allocated in MPIService support. Otherwise, lose them.
void gov.cca.ports.MPIServer.initAsService ( in long  borrowComm,
in long  dupComm,
inout gov.cca.AbstractFramework  af 
) throws gov.cca.CCAException

Create and add to the framework MPIService and MPIBorrow support services.

This will appear in the frame as an MPISetup component. MPI_Init must have been called before this is called. This entry point should work for any cca framework bootstrapping in commworld or otherwise scoped communicator via the standard ServiceRegistry interface. This will not automatically cause the component class providing this interface to appear in the list of classes the user may instantiate. The borrowComm and dupComm may be identical. In the MPI sense, this call must be collective on the scopes of both borrowComm and dupComm.

Parameters:
borrowCommthe (valid) shared communicator for those using MPIBorrow (in fortran form).
dupCommthe (valid) communicator (in fortran form) to duplicate for those using MPIService.
afThe frame into which the server will add itself. In principle, the caller should be able to forget about the class object they are holding to make this call.
void gov.cca.ports.MPIServer.initComponent ( in long  borrowComm,
in long  dupComm 
)

Set the communicators on an uninitialized mpi support component instance created like any other.

This does NOT cause the component being initialized to register itself as a service for all comers.

The borrowComm and dupComm may be identical. In the MPI sense, this call must be collective on the scopes of both borrowComm and dupComm.

Parameters:
borrowCommthe (valid) shared communicator for those using MPIBorrow (in fortran form).
dupCommthe (valid) communicator (in fortran form) to duplicate for those using MPIService.
afThe frame into which the server will add itself. In principle, the caller should be able to forget about the class object they are holding to make this call.

Check instance status.

Only one init* call per instance is allowed.

Returns:
true if initAsService or initComponent already done.

The documentation for this interface was generated from the following file: