2#include <numapp/numa.hpp>
9 std::cout <<
"NUMA not available";
13 auto policy = CpuAffinity(Cpumask::MakeFromCpuStringAll(
"0-3"));
16 std::cout <<
"Failed to apply policy: " << ec.message() << std::endl;
Create CPU affinity and apply to current thread.
Contains declarations for CpuAffinity.
std::error_code Apply(CpuAffinity const &affinity) noexcept
Apply policy to calling thread.
bool NumaAvailable() noexcept
Query whether system has NUMA support.