java.lang.Object
com.powsybl.computation.mpi.MpiComputationManager
- All Implemented Interfaces:
com.powsybl.computation.ComputationManager,AutoCloseable
public class MpiComputationManager
extends Object
implements com.powsybl.computation.ComputationManager
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
ConstructorsConstructorDescriptionMpiComputationManager(Path localDir, MpiJobScheduler scheduler) MpiComputationManager(Path localDir, MpiJobScheduler scheduler, MpiExecutorContext executorContext) MpiComputationManager(Path localDir, MpiNativeServices nativeServices) MpiComputationManager(Path localDir, MpiNativeServices nativeServices, MpiStatisticsFactory statisticsFactory, Path statisticsDbDir, String statisticsDbName, MpiExecutorContext executorContext, int coresPerRank, boolean verbose, Path stdOutArchive) MpiComputationManager(Path localDir, MpiStatisticsFactory statisticsFactory, Path statisticsDbDir, String statisticsDbName, MpiExecutorContext executorContext, int coresPerRank, boolean verbose, Path stdOutArchive) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<R> CompletableFuture<R>execute(com.powsybl.computation.ExecutionEnvironment environment, com.powsybl.computation.ExecutionHandler<R> handler) com.powsybl.computation.ComputationResourcesStatusnewCommonFile(String fileName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.powsybl.computation.ComputationManager
execute
-
Constructor Details
-
MpiComputationManager
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiNativeServices nativeServices) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiStatisticsFactory statisticsFactory, Path statisticsDbDir, String statisticsDbName, MpiExecutorContext executorContext, int coresPerRank, boolean verbose, Path stdOutArchive) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiNativeServices nativeServices, MpiStatisticsFactory statisticsFactory, Path statisticsDbDir, String statisticsDbName, MpiExecutorContext executorContext, int coresPerRank, boolean verbose, Path stdOutArchive) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiJobScheduler scheduler, MpiExecutorContext executorContext)
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfacecom.powsybl.computation.ComputationManager
-
getLocalDir
- Specified by:
getLocalDirin interfacecom.powsybl.computation.ComputationManager
-
newCommonFile
- Specified by:
newCommonFilein interfacecom.powsybl.computation.ComputationManager
-
execute
public <R> CompletableFuture<R> execute(com.powsybl.computation.ExecutionEnvironment environment, com.powsybl.computation.ExecutionHandler<R> handler) - Specified by:
executein interfacecom.powsybl.computation.ComputationManager
-
getResourcesStatus
public com.powsybl.computation.ComputationResourcesStatus getResourcesStatus()- Specified by:
getResourcesStatusin interfacecom.powsybl.computation.ComputationManager
-
getExecutor
- Specified by:
getExecutorin interfacecom.powsybl.computation.ComputationManager
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacecom.powsybl.computation.ComputationManager
-