20 #include "../parallelism.h"
21 #include "../context.h"
Task: an operation that can be executed by multiple threads in parallel.
TaskDeviceRequirement
Specifies which device (CPU and/or GPU) is used to run the task.
Template of a task using GPU.
bool process(TaskThread &thread)
Executes the task on CPU within a given thread.
ThreadIndex getMaxThreads() const
Gives the upper limint on the number of threads the task may be performed by.
TaskDeviceRequirement getUsedDevices() const
Communicates devices (CPU and/or GPU) the task is run on.
unsigned char ThreadIndex
number of threads / thread index