MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / DevicePair

Class DevicePair

rtpose_wrapper/include/caffe/parallel.hpp:62–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62class DevicePair {
63 public:
64 DevicePair(int parent, int device)
65 : parent_(parent),
66 device_(device) {
67 }
68 inline int parent() {
69 return parent_;
70 }
71 inline int device() {
72 return device_;
73 }
74
75 // Group GPUs in pairs, by proximity depending on machine's topology
76 static void compute(const vector<int> devices, vector<DevicePair>* pairs);
77
78 protected:
79 int parent_;
80 int device_;
81};
82
83// Synchronous data parallelism using map-reduce between local GPUs.
84template<typename Dtype>

Callers 1

computeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected