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 TypeMethodDescriptionvoid
close()
<R> CompletableFuture<R>
execute
(com.powsybl.computation.ExecutionEnvironment environment, com.powsybl.computation.ExecutionHandler<R> handler) com.powsybl.computation.ComputationResourcesStatus
newCommonFile
(String fileName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.computation.ComputationManager
execute
-
Constructor Details
-
MpiComputationManager
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiNativeServices nativeServices) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiStatisticsFactory statisticsFactory, Path statisticsDbDir, String statisticsDbName, MpiExecutorContext executorContext, int coresPerRank, boolean verbose, Path stdOutArchive) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
MpiComputationManager
public MpiComputationManager(Path localDir, MpiJobScheduler scheduler, MpiExecutorContext executorContext)
-
-
Method Details
-
getVersion
- Specified by:
getVersion
in interfacecom.powsybl.computation.ComputationManager
-
getLocalDir
- Specified by:
getLocalDir
in interfacecom.powsybl.computation.ComputationManager
-
newCommonFile
- Specified by:
newCommonFile
in interfacecom.powsybl.computation.ComputationManager
-
execute
public <R> CompletableFuture<R> execute(com.powsybl.computation.ExecutionEnvironment environment, com.powsybl.computation.ExecutionHandler<R> handler) - Specified by:
execute
in interfacecom.powsybl.computation.ComputationManager
-
getResourcesStatus
public com.powsybl.computation.ComputationResourcesStatus getResourcesStatus()- Specified by:
getResourcesStatus
in interfacecom.powsybl.computation.ComputationManager
-
getExecutor
- Specified by:
getExecutor
in interfacecom.powsybl.computation.ComputationManager
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacecom.powsybl.computation.ComputationManager
-