HWTopoLinux.cpp File Reference

Machine Descriptions on Linux -*- C++ -*-. More...

#include "Galois/Runtime/ll/HWTopo.h"
#include "Galois/Runtime/ll/EnvCheck.h"
#include "Galois/Runtime/ll/gio.h"
#include <vector>
#include <functional>
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <sched.h>

Classes

struct  anonymous_namespace{HWTopoLinux.cpp}::cpuinfo
struct  anonymous_namespace{HWTopoLinux.cpp}::AutoLinuxPolicy
struct  anonymous_namespace{HWTopoLinux.cpp}::AutoLinuxPolicy::DensePackageLessThan
 Sort in package-dense manner. More...
struct  anonymous_namespace{HWTopoLinux.cpp}::AutoLinuxPolicy::DensePackageEqual

Namespaces

namespace  anonymous_namespace{HWTopoLinux.cpp}

Functions

static bool anonymous_namespace{HWTopoLinux.cpp}::linuxBindToProcessor (int proc)
static std::vector< cpuinfo > anonymous_namespace{HWTopoLinux.cpp}::parseCPUInfo ()
 Parse /proc/cpuinfo.
std::vector< int > anonymous_namespace{HWTopoLinux.cpp}::parseCPUSet ()
 Returns physical ids in current cpuset.
AutoLinuxPolicy & anonymous_namespace{HWTopoLinux.cpp}::getPolicy ()

Variables

static const char * anonymous_namespace{HWTopoLinux.cpp}::sProcInfo = "/proc/cpuinfo"
static const char * anonymous_namespace{HWTopoLinux.cpp}::sCPUSet = "/proc/self/cpuset"

Detailed Description

Machine Descriptions on Linux -*- C++ -*-.

License

Galois, a framework to exploit amorphous data-parallelism in irregular programs.

Copyright (C) 2013, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.

Description

This contains descriptions of machine topologies. These describes levels in the machine. The lowest level is a package.

This also matches OS cpu numbering to galois thread numbering and binds threads to processors. Threads are assigned densly in each package before the next package. SMT hardware contexts are bound after all real cores (int x86).

Author:
Andrew Lenharth <andrewl@lenharth.org>

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1