|
Agora
1.2.0
Agora project
|
Utility functions for file and text processing. More...
#include "utils.h"#include <numa.h>#include <cassert>#include <iomanip>#include <iostream>#include <list>#include <mutex>#include <tuple>#include "datatype_conversion.h"
Classes | |
| struct | CoreInfo |
Functions | |
| static size_t | GetCoreId (size_t core) |
| static void | PrintCoreList (const std::list< CoreInfo > &clist) |
| static void | PrintBitmask (const struct bitmask *bm) |
| void | PrintCoreAssignmentSummary () |
| void | SetCpuLayoutOnNumaNodes (bool verbose, const std::vector< size_t > &cores_to_exclude) |
| size_t | GetPhysicalCoreId (size_t core_id) |
| int | PinToCore (size_t core_id) |
| void | PinToCoreWithOffset (ThreadType thread_type, size_t core_offset, size_t thread_id, bool allow_reuse, bool verbose) |
Variables | |
| static std::vector< size_t > | cpu_layout |
| static bool | cpu_layout_initialized = false |
| static std::mutex | pin_core_mutex |
| static std::list< CoreInfo > | core_list |
Utility functions for file and text processing.
|
static |

| size_t GetPhysicalCoreId | ( | size_t | core_id | ) |
| int PinToCore | ( | size_t | core_id | ) |

| void PinToCoreWithOffset | ( | ThreadType | thread_type, |
| size_t | core_offset, | ||
| size_t | thread_id, | ||
| bool | allow_reuse, | ||
| bool | verbose | ||
| ) |


|
static |


| void PrintCoreAssignmentSummary | ( | ) |


|
static |


| void SetCpuLayoutOnNumaNodes | ( | bool | verbose, |
| const std::vector< size_t > & | cores_to_exclude | ||
| ) |


|
static |
|
static |
|
static |
|
static |