![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
#include "alpaka/api/host/hwloc/hwlocConfig.hpp"#include "alpaka/api/host/sysInfo.hpp"#include "alpaka/core/util.hpp"#include "alpaka/unused.hpp"#include <cerrno>#include <cstring>#include <fstream>#include <limits>#include <optional>#include <sstream>#include <stdexcept>#include <string>#include <thread>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | alpaka |
| main alpaka namespace. | |
| namespace | alpaka::onHost |
| Functionality which is usable on the host CPU controller thread. | |
| namespace | alpaka::onHost::internal |
| namespace | alpaka::onHost::internal::hwloc |
| Implement functions required to set thread affinity and pin memory. | |
Functions | |
| size_t | alpaka::onHost::internal::hwloc::getFreeGlobalMemBytes (uint32_t cpuDomainIdx) |
| Return the number of free bytes in a CPU domain. | |
| size_t | alpaka::onHost::internal::hwloc::getMemCapacityBytes (uint32_t cpuDomainIdx) |
| Return the memory capacity of a CPU domain. | |
| uint32_t | alpaka::onHost::internal::hwloc::getNumCores (uint32_t cpuDomainIdx) |
| Return the number of cores in a CPU domain. | |
| uint32_t | alpaka::onHost::internal::hwloc::getNumCpuDomains () |
| Get the number of alpaka host CPU domains. | |
| std::optional< size_t > | alpaka::onHost::internal::hwloc::parseNodeMemInfoValueBytes (unsigned osNodeIndex, std::string_view key) |
| Parse the OS NUMA information. | |
| template<typename T> | |
| void | alpaka::onHost::internal::hwloc::pinPointer (T *const ptr, size_t bytes, uint32_t cpuDomainIdx) |
| Set the default NUMA memory node for a CPU-domain memory range. | |
| void | alpaka::onHost::internal::hwloc::setThreadAffinity (uint32_t cpuDomainIdx) |
| Set the affinity of the current thread to all cores of a CPU domain. | |
Variables | |
| constexpr uint32_t | alpaka::onHost::internal::hwloc::allDomains = std::numeric_limits<uint32_t>::max() |
| Constant to select all CPU domains. | |