/* * numainfo.cpp * * Created on: Jan 6, 2015 * Author: gregor */ #include #include int main(int argc, char *argv[]) { std::cout << "number of processors: " << gltb::numberOfProcessors() << std::endl; std::cout << "number of NUMA nodes: " << gltb::numberOfNumaNodes() << std::endl; unsigned int numProcessors = gltb::numberOfProcessors(); for(unsigned int i = 0; i < numProcessors; i++) { std::cout << "processor " << i << " belongs to NUMA node " << gltb::numaNodeOfProcessor(i) << std::endl; } }