#include <Threads.h>
Public Member Functions | |
int | indexLevelMap (int level, int thr) const |
int | getNumLevels () const |
int | getNumThreads () const |
int | getNumCores () const |
int | getLevelSize (int S) const |
int | isFirstInLevel (int level, int thr) const |
virtual void | bindThreadToProcessor (int id)=0 |
Protected Attributes | |
int | numLevels |
int | numThreads |
int | numCores |
std::vector< int > | levelSize |
std::vector< int > | levelMap |
virtual void GaloisRuntime::ThreadPolicy::bindThreadToProcessor | ( | int | id | ) | [pure virtual] |
Implemented in FaradayPolicy, VoltaPolicy, MaxwellPolicy, GaloisPolicy, and DummyPolicy.
int GaloisRuntime::ThreadPolicy::getLevelSize | ( | int | S | ) | const [inline] |
int GaloisRuntime::ThreadPolicy::getNumCores | ( | ) | const [inline] |
int GaloisRuntime::ThreadPolicy::getNumLevels | ( | ) | const [inline] |
int GaloisRuntime::ThreadPolicy::getNumThreads | ( | ) | const [inline] |
int GaloisRuntime::ThreadPolicy::indexLevelMap | ( | int | level, | |
int | thr | |||
) | const [inline] |
int GaloisRuntime::ThreadPolicy::isFirstInLevel | ( | int | level, | |
int | thr | |||
) | const [inline] |
std::vector<int> GaloisRuntime::ThreadPolicy::levelMap [protected] |
std::vector<int> GaloisRuntime::ThreadPolicy::levelSize [protected] |
int GaloisRuntime::ThreadPolicy::numCores [protected] |
int GaloisRuntime::ThreadPolicy::numLevels [protected] |
int GaloisRuntime::ThreadPolicy::numThreads [protected] |