cca-spec-babel
0.8.6-unstable(developer)
|
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. |
void gov.cca.ports.MPIServer.finalize | ( | in bool | reclaim | ) | throws gov.cca.CCAException |
Shutdown the previous mpi-related services.
reclaim | if 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.
borrowComm | the (valid) shared communicator for those using MPIBorrow (in fortran form). |
dupComm | the (valid) communicator (in fortran form) to duplicate for those using MPIService. |
af | The 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.
borrowComm | the (valid) shared communicator for those using MPIBorrow (in fortran form). |
dupComm | the (valid) communicator (in fortran form) to duplicate for those using MPIService. |
af | The 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.