some err about caffe op with multiple gpu
It work well when using caffe op with a single gpu.
Howerer, when using caffe op with multiple gpus, I printed all gradients of operators above caffe op and find them all zeros
@HrWangChengdu could you have a look.
Could you also provide a simple code snipplet that produce this problem?
data = mx.sym.Variable('data') data = mx.sym.CaffeOp(data_0=data, num_weight=2, prototxt='''layer{type:"Convolution" convolution_param { num_output: 128 pad: 1 kernel_size: 3 stride: 1 }}''') ...
model = mx.model.FeedForward( symbol=data ........) model.fit( ..... , kvstore=local_allreduce_device)
Could you run mxnet/example/caffe/caffe_net.py on multi-gpu? That works fine for me.
I run the example . when I use kv-store = 'local' ,it works fine.
But if kv-store = 'local_allreduce_device', train-top-accuracy don't increase.
@mli @tqchen
@HrWangChengdu This sound like some synchronization issue. Caffe probably use the default stream (Does it? I'm not sure) so you need to sync on the default stream at the end of forward/backward
@piiswrong thx. I'm checking on this.
@piiswrong I guess this issue could be closed.