schedule: Schedule Dependency Graph

Description Usage Arguments References

Description

Creates the schedule for a dependency graph. The schedule is the assignment of the expressions to different processors at different times. There are many possible scheduling algorithms. The default is mapSchedule, which does simple map parallelism using R's apply family of functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
schedule(graph, data, platform, ...)

## S4 method for signature 'GeneratedCode'
schedule(graph, data, platform, ...)

## S4 method for signature 'TaskGraph'
schedule(graph, data, platform = Platform(),
  nWorkers = platform@nWorkers, chunkFuncs = character(),
  reduceFuncs = list(), knownReduceFuncs = getKnownReduceFuncs(),
  knownChunkFuncs = getKnownChunkFuncs(),
  allChunkFuncs = c(knownChunkFuncs, chunkFuncs))

Arguments

graph

TaskGraph, code dependency graph

data

list of data descriptions. Each element is a DataSource. The names of the list elements correspond to the variables in the code that these objects are bound to.

platform

Platform describing resource to compute on

...

additional arguments to schedule methods

References

See Task Scheduling for Parallel Systems, Sinnen, O. for a thorough treatment of what it means to have a valid schedule.


clarkfitzg/codedoctor documentation built on Nov. 18, 2020, 4:34 p.m.