Reputation: 86
is possible to set all GPUs for Caffe (especially pyCaffe)?
Something like:
caffe train -solver examples/mnist/lenet_solver.prototxt -gpu all
Upvotes: 4
Views: 5464
Reputation: 1430
Both forks have supported multi-GPU for a while now.
You may be interested to know that there is a pretty serious outstanding issue with multi-GPU and PythonLayers (see issue, temporary fix).
Upvotes: 7
Reputation: 1770
It seems that Caffe now starts supporting training on multi-GPUs for C++ interface. See the docs on CommandLine interface.
# train on GPUs 0 & 1 (doubling the batch size)
caffe train -solver examples/mnist/lenet_solver.prototxt -gpu 0,1
# train on all GPUs (multiplying batch size by number of devices)
caffe train -solver examples/mnist/lenet_solver.prototxt -gpu all
Upvotes: 4
Reputation: 114796
AFAIK Caffe is not supporting multi gpu training at the moment. It is planned for future release. See a discussion here.
It seems like NVIDIA's branch of caffe has this functionality. See the issue here.
Upvotes: 6