Remove cudaSetDevice(1)
authorJames Thewlis <jamt9000@gmail.com>
Wed, 19 Mar 2014 14:55:44 +0000 (14:55 +0000)
committerJames Thewlis <jamt9000@gmail.com>
Wed, 19 Mar 2014 14:55:44 +0000 (14:55 +0000)
So it works when there is only one GPU

tools/dump_network.cpp

index 286de48..21d0256 100644 (file)
@@ -28,7 +28,6 @@
 using namespace caffe;  // NOLINT(build/namespaces)
 
 int main(int argc, char** argv) {
-  cudaSetDevice(1);
   Caffe::set_mode(Caffe::GPU);
   Caffe::set_phase(Caffe::TEST);