Fix MultiGPU solver test with TEST_GPUID != 1
authorRonghang Hu <huronghang@hotmail.com>
Fri, 14 Aug 2015 20:52:01 +0000 (13:52 -0700)
committerRonghang Hu <huronghang@hotmail.com>
Sat, 15 Aug 2015 05:05:45 +0000 (22:05 -0700)
commit3778a2a6ca1c5d909f12add066478d04fe44b8cd
treeb3cae6f1698540b80637d944152fd91a6364d076
parent65c7fa6e92d81c68d44caa206bd003013786ac69
Fix MultiGPU solver test with TEST_GPUID != 1

This is a patch for multi-gpu testing issue (#2926). The problem fixed in this
commit is that when calling make runtest with TEST_GPUID != 0 on a MultiGPU
machine, solver tests will crash because gpu ids in multi-gpu tests doesn't
match that of single GPU test.
src/caffe/test/test_gradient_based_solver.cpp