HW-SD  1.0.0
Classes | Typedefs | Functions
hwsd Namespace Reference

The HW-SD discovery library. More...

Classes

class  Filter
 Base class for all discovery filters. More...
class  DuplicateFilter
 Filters all duplicates during discovery. More...
class  MirrorFilter
 Filter overlapping duplicates with different GPU types. More...
class  SessionFilter
 Filters for a specific session. More...
class  GPUFilter
 Filters for a specific GPU regex. More...
class  NetFilter
 Filter for network interfaces matching prefixes and/or type. More...
struct  GPUInfo
 A structure containing GPU-specific information. More...
class  Module
 Base class for runtime-attached DSOs of a query implementation. More...
struct  NetInfo
 A structure containing network-specific information. More...
struct  NodeInfo
 A structure containing node-specific information. More...
class  Version
 Information about the current HW-SD version. More...

Typedefs

typedef std::vector< GPUInfoGPUInfos
 A vector of GPUInfo structs.
typedef GPUInfos::iterator GPUInfosIter
 An iterator over GPUInfos.
typedef GPUInfos::const_iterator GPUInfosCIter
 A const iterator over GPUInfos.
typedef std::vector< NetInfoNetInfos
typedef NetInfos::iterator NetInfosIter
typedef NetInfos::const_iterator NetInfosCIter
typedef lunchbox::RefPtr< FilterFilterPtr
 A shared Filter pointer.
typedef Module< GPUInfosGPUModule
typedef Module< NetInfos > NetModule

Functions

FilterPtr operator| (FilterPtr a, FilterPtr b)
 Chain two filters and return the chain.
std::ostream & operator<< (std::ostream &os, const GPUInfo &info)
bool announceGPUInfos (const std::string &session)
 Announce the information about all found network GPUs.
GPUInfos discoverGPUInfos (FilterPtr filter=FilterPtr(new DuplicateFilter))
bool announceNetInfos (const std::string &session)
 Announce the information about all found network interfaces.
NetInfos discoverNetInfos (FilterPtr filter=FilterPtr(new DuplicateFilter))
const lunchbox::UUID & getLocalNodeID ()
std::ostream & operator<< (std::ostream &os, const NetInfo &info)
std::ostream & operator<< (std::ostream &os, const NodeInfo &info)

Detailed Description

The HW-SD discovery library.

Typedef Documentation

typedef GPUInfos::const_iterator hwsd::GPUInfosCIter

A const iterator over GPUInfos.

Definition at line 33 of file types.h.

Function Documentation

bool hwsd::announceGPUInfos ( const std::string &  session)

Announce the information about all found network GPUs.

Returns
true if announcement was successful
Version
1.0
bool hwsd::announceNetInfos ( const std::string &  session)

Announce the information about all found network interfaces.

Returns
true if announcement was successful
Version
1.0
GPUInfos hwsd::discoverGPUInfos ( FilterPtr  filter = FilterPtr(new DuplicateFilter))
Returns
information about all found GPUs.
Version
1.0
NetInfos hwsd::discoverNetInfos ( FilterPtr  filter = FilterPtr(new DuplicateFilter))
Returns
information about all found network interfaces.
Version
1.0
const lunchbox::UUID& hwsd::getLocalNodeID ( )
Returns
the local node identifier.
Version
1.0
FilterPtr hwsd::operator| ( FilterPtr  a,
FilterPtr  b 
)
inline

Chain two filters and return the chain.

Version
1.0

Definition at line 84 of file filter.h.