DiSMEC++
dismec::parallel Namespace Reference

Classes

class  NUMAReplicatorBase
 Base class for NUMAReplicator. More...
 
class  NUMAReplicator
 Helper class to ensure that each NUMA node has its own copy of some immutable data. More...
 
class  ThreadDistributor
 This class helps with distributing threads to the different CPU cores. More...
 
struct  RunResult
 
class  ParallelRunner
 
class  TaskGenerator
 Base class for all parallelized operations. More...
 
class  thread_id_t
 Strong typedef for an int to signify a thread id. More...
 
class  numa_node_id_t
 Strong typedef for an int to signify a numa domain. More...
 
class  cpu_id_t
 Strong typedef for an int to signify a (core of a) cpu. More...
 

Functions

void pin_to_data (const void *data)
 Pint the calling thread to the NUMA node on which data resides. More...
 

Variables

constexpr const int COST_PLACE_THREAD = 10
 Load balancing cost for placing a thread on a core. More...
 
constexpr const int COST_PLACE_HYPER_THREAD = 5
 Load balancing cost for placing a thread on a SMT shared core. More...
 

Function Documentation

◆ pin_to_data()

void dismec::parallel::pin_to_data ( const void *  data)

Pint the calling thread to the NUMA node on which data resides.

Definition at line 78 of file numa.cpp.

References anonymous_namespace{numa.cpp}::lookup_numa_node().

Variable Documentation

◆ COST_PLACE_HYPER_THREAD

constexpr const int dismec::parallel::COST_PLACE_HYPER_THREAD = 5
constexpr

Load balancing cost for placing a thread on a SMT shared core.

Definition at line 35 of file config.h.

Referenced by anonymous_namespace{numa.cpp}::NodeData::place_thread().

◆ COST_PLACE_THREAD

constexpr const int dismec::parallel::COST_PLACE_THREAD = 10
constexpr

Load balancing cost for placing a thread on a core.

Definition at line 32 of file config.h.

Referenced by anonymous_namespace{numa.cpp}::NodeData::place_thread().