#include <mitkSPMD.h>
Inherits mitkObject.
Inherited by mitkSPMDDelegate.
Inheritance diagram for mitkSPMD:
Public Member Functions | |
void | SetNumberOfThreads (int NumberOfThreads) |
int | GetNumberOfThreads () const |
void | RunSPMD () |
Static Public Member Functions | |
static int | GetGlobalDefaultNumberOfThreads () |
mitkSPMD is a threading tool that implements a SPMD (Single Program Multiple Data) style multi-thread execution. mitkSPMD will create a number of threads, and each thread will end up calling the virtual protected function ThreadExecute with their unique identifier, which can be used to decide the part of data to be processed, since the memory is shared among threads.
|
Acquire the default number of threads according to the number of hardware processors(cores)
|
|
Get the number of threads to be created
|
|
Perform the SPMD execution |
|
Set the number of threads to be created
|