Closed mharradon closed 7 years ago
Yes you can!
Say you want to output variable x
, which should be average, and y
which should be gathered. Give as argument to synk.function
: outputs=[(x, 'avg'), (y, 'gather')]
(average is the default if you don't write anything).
Also, I've recently noticed that gather through pygpu and nccl may not be well-behaved if the gpuarray in each worker is not exactly the same shape. If you have different shapes, use 'cpu_gather'
.
Great, thanks!
If I have a function returning a result I want, can I gather the results from all of my gpus?