summaryrefslogtreecommitdiff
path: root/tools/device_query.cpp
diff options
context:
space:
mode:
authorYangqing Jia <jiayq@google.com>2014-07-25 09:02:37 -0700
committerYangqing Jia <jiayq@google.com>2014-07-25 09:08:12 -0700
commita916ef49fad7b7a3c5faee7df46af3d327aecee9 (patch)
tree8e00605926dbaf805b8a6e98bc95cf925702e24b /tools/device_query.cpp
parent6f46bb90294c9f5f544da76594d49c111788612c (diff)
downloadcaffeonacl-a916ef49fad7b7a3c5faee7df46af3d327aecee9.tar.gz
caffeonacl-a916ef49fad7b7a3c5faee7df46af3d327aecee9.tar.bz2
caffeonacl-a916ef49fad7b7a3c5faee7df46af3d327aecee9.zip
Adding new caffe binary that does everything in one binary; deprecating device_query, finetune_net, net_speed_benchmark, train_net
Diffstat (limited to 'tools/device_query.cpp')
-rw-r--r--tools/device_query.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/device_query.cpp b/tools/device_query.cpp
index 5040b8ee..224a3145 100644
--- a/tools/device_query.cpp
+++ b/tools/device_query.cpp
@@ -1,23 +1,8 @@
// Copyright 2014 BVLC and contributors.
-
#include "caffe/common.hpp"
-#include "caffe/net.hpp"
-
-
-using namespace caffe; // NOLINT(build/namespaces)
int main(int argc, char** argv) {
- if (argc > 2) {
- LOG(ERROR) << "device_query [device_id=0]";
- return 1;
- }
- if (argc == 2) {
- LOG(INFO) << "Querying device_id=" << argv[1];
- Caffe::SetDevice(atoi(argv[1]));
- Caffe::DeviceQuery();
- } else {
- Caffe::DeviceQuery();
- }
+ LOG(ERROR) << "Deprecated. Use caffe.bin devicequery [--device_id=0] instead.";
return 0;
}