MCPcopy Create free account
hub / github.com/BVLC/caffe / device_query

Function device_query

tools/caffe.cpp:137–146  ·  view source on GitHub ↗

Device Query: show diagnostic information for a GPU device.

Source from the content-addressed store, hash-verified

135
136// Device Query: show diagnostic information for a GPU device.
137int device_query() {
138 LOG(INFO) << "Querying GPUs " << FLAGS_gpu;
139 vector<int> gpus;
140 get_gpus(&gpus);
141 for (int i = 0; i < gpus.size(); ++i) {
142 caffe::Caffe::SetDevice(gpus[i]);
143 caffe::Caffe::DeviceQuery();
144 }
145 return 0;
146}
147RegisterBrewFunction(device_query);
148
149// Load the weights from the specified caffemodel(s) into the train and

Callers

nothing calls this directly

Calls 2

get_gpusFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected