Search in sources :

Example 1 with MultiNodeGroup

use of es.bsc.compss.types.allocatableactions.MultiNodeGroup 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);
    }
}
Also used : MultiNodeExecutionAction(es.bsc.compss.types.allocatableactions.MultiNodeExecutionAction) MultiNodeGroup(es.bsc.compss.types.allocatableactions.MultiNodeGroup)

Aggregations

MultiNodeExecutionAction (es.bsc.compss.types.allocatableactions.MultiNodeExecutionAction)1 MultiNodeGroup (es.bsc.compss.types.allocatableactions.MultiNodeGroup)1