use of edu.iu.dsc.tws.rsched.spi.scheduler.IController in project twister2 by DSC-SPIDAL.
the class MPILauncher method launch.
@Override
public boolean launch(RequestedResources resourcePlan, JobAPI.Job job) {
LOG.log(Level.INFO, "Launching job for cluster {0}", MPIContext.clusterType(config));
if (!setupWorkingDirectory(job)) {
throw new RuntimeException("Failed to setup the directory");
}
Config newConfig = Config.newBuilder().putAll(config).put(SchedulerContext.WORKING_DIRECTORY, jobWorkingDirectory).build();
// now start the controller, which will get the resources from
// slurm and start the job
IController controller = new MPIController(true);
controller.initialize(newConfig);
return controller.start(resourcePlan, job);
}
Aggregations