![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
#include "ghost/pumap.h"#include "ghost/machine.h"#include "ghost/util.h"#include "ghost/locality.h"
Functions | |
| ghost_error | ghost_pumap_npu (int *nPUs, int numanode) |
| Get the number of processing units in total or in a given NUMA node. More... | |
| ghost_error | ghost_pumap_nidle (int *nPUs, int numanode) |
| Get the number of idle processing units in total or in a given NUMA node. More... | |
| ghost_error | ghost_pumap_setidle (hwloc_bitmap_t cpuset) |
| Set the given CPU set in the PU map to idle. More... | |
| ghost_error | ghost_pumap_setidle_idx (int idx) |
| Set the given index in the PU map to idle. More... | |
| ghost_error | ghost_pumap_setbusy (hwloc_bitmap_t cpuset) |
| Set the given CPU set in the PU map to busy. More... | |
| ghost_error | ghost_pumap_get (ghost_pumap **map) |
| Get the PU map. More... | |
| ghost_error | ghost_pumap_create (hwloc_cpuset_t cpuset) |
| Create a PU map. More... | |
| void | ghost_pumap_destroy () |
| Destroy the PU map. More... | |
| ghost_error | ghost_pumap_string (char **str) |
| Turn the PU mpa into a string. More... | |
Variables | |
| static ghost_pumap * | pumap = NULL |
| pthread_mutex_t | ghost_pumap_mutex |
| ghost_error ghost_pumap_create | ( | hwloc_cpuset_t | cpuset | ) |
Create a PU map.
| cpuset | The CPU set to be covered by the PU map. |

| void ghost_pumap_destroy | ( | ) |
Destroy the PU map.
| ghost_error ghost_pumap_get | ( | ghost_pumap ** | map | ) |
Get the PU map.
| map | Where to store the map. |
| ghost_error ghost_pumap_nidle | ( | int * | nPUs, |
| int | numaNode | ||
| ) |
Get the number of idle processing units in total or in a given NUMA node.
| nPUs | Where to store the number. |
| numaNode | The NUMA node to consider or GHOST_NUMANODE_ANY. |

| ghost_error ghost_pumap_npu | ( | int * | nPUs, |
| int | numaNode | ||
| ) |
Get the number of processing units in total or in a given NUMA node.
| nPUs | Where to store the number. |
| numaNode | The NUMA node to consider or GHOST_NUMANODE_ANY. |

| ghost_error ghost_pumap_setbusy | ( | hwloc_bitmap_t | cpuset | ) |
Set the given CPU set in the PU map to busy.
| cpuset | The CPU set to be set busy. |
If the CPU set is not included in the PU map's CPU set an error is returned.
| ghost_error ghost_pumap_setidle | ( | hwloc_bitmap_t | cpuset | ) |
Set the given CPU set in the PU map to idle.
| cpuset | The CPU set to be set idle. |
If the CPU set is not included in the PU map's CPU set an error is returned.
| ghost_error ghost_pumap_setidle_idx | ( | int | idx | ) |
Set the given index in the PU map to idle.
| idx | The index. |
If the index is not included in the PU map's CPU set an error is returned.
| pthread_mutex_t ghost_pumap_mutex |
|
static |
1.8.6