DotMP
|
Interface for user-defined schedulers. More...
Public Member Functions | |
void | LoopInit (int start, int end, uint num_threads, uint chunk_size) |
Called before each worksharing parallel-for loop. Used to instantiate scheduler variables. More... | |
void | LoopNext (int thread_id, out int start, out int end) |
Called between each chunk to calculate the bounds of the next chunk. More... | |
Interface for user-defined schedulers.
void DotMP.IScheduler.LoopInit | ( | int | start, |
int | end, | ||
uint | num_threads, | ||
uint | chunk_size | ||
) |
Called before each worksharing parallel-for loop. Used to instantiate scheduler variables.
start | The start of the loop, inclusive. |
end | The end of the loop, exclusive. |
num_threads | The number of threads. |
chunk_size | Provided chunk size. |
Implemented in DotMP.Schedulers.WorkStealingScheduler, DotMP.Schedulers.RuntimeScheduler, DotMP.Schedulers.GuidedScheduler, DotMP.Schedulers.DynamicScheduler, DotMP.Schedulers.StaticScheduler, DotMP.Schedule, and DotMPTests.Serial.
void DotMP.IScheduler.LoopNext | ( | int | thread_id, |
out int | start, | ||
out int | end | ||
) |
Called between each chunk to calculate the bounds of the next chunk.
thread_id | The thread ID to provide a chunk to. |
start | The start of the chunk, inclusive. |
end | The end of the chunk, exclusive. |
Implemented in DotMP.Schedulers.WorkStealingScheduler, DotMP.Schedulers.RuntimeScheduler, DotMP.Schedulers.GuidedScheduler, DotMP.Schedulers.DynamicScheduler, DotMP.Schedulers.StaticScheduler, DotMP.Schedule, and DotMPTests.Serial.