use of es.bsc.compss.types.allocatableactions.MultiNodeExecutionAction in project compss by bsc-wdc.
the class ExecuteTasksRequest method submitMultiNodeTask.
private <T extends WorkerResourceDescription> void submitMultiNodeTask(TaskScheduler ts, int numNodes, ResourceScheduler<T> specificResource) {
LOGGER.debug("Scheduling request for task " + task.getId() + " treated as multiNodeTask with " + numNodes + " nodes");
// Can use one or more resources depending on the computingNodes
MultiNodeGroup group = new MultiNodeGroup(numNodes);
for (int i = 0; i < numNodes; ++i) {
MultiNodeExecutionAction action = new MultiNodeExecutionAction(ts.generateSchedulingInformation(specificResource), ts.getOrchestrator(), producer, task, group);
ts.newAllocatableAction(action);
}
}
Aggregations