MADNESS 0.10.1
Namespaces | Functions

Implementation of the startup CPU-binding sanity check. More...

#include <madness/madness_config.h>
#include <madness/world/thread_binding.h>
#include <madness/world/worldinit.h>
#include <algorithm>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <limits>
#include <sstream>
#include <unistd.h>
#include <sched.h>
Include dependency graph for thread_binding.cc:

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.
 

Functions

void madness::check_thread_binding (const SafeMPI::Intracomm &comm, int nthread_app)
 Throw if the CPU binding cannot accommodate the thread pool.
 
std::string madness::cpu_list_to_string (const std::vector< int > &cpus)
 Render a list of cpu ids in compact form, e.g. {0,1,2,3,8} -> "0-3,8".
 
ThreadBindingInfo madness::get_thread_binding_info ()
 Query the CPU affinity mask and NUMA placement of the calling process.
 

Detailed Description

Implementation of the startup CPU-binding sanity check.