progressive-growing-of-gans.pytorch icon indicating copy to clipboard operation
progressive-growing-of-gans.pytorch copied to clipboard

GPU have processes assigned but training time is taking as long as CPU

Open timothyjmarkham opened this issue 6 years ago • 0 comments

Using pytorch v 1.0.1, I was initially getting this error:

RuntimeError: binary_op(): expected both inputs to be on same device, but input a is on cuda:1 and input b is on cuda:0

After using the register_buffer fix identified here (https://discuss.pytorch.org/t/tensors-are-on-different-gpus/1450/28) in the custom_layers.py file, I was able to get the program to run. GPU memory is being used, but the iterations are taking just as long as with CPU only.

Screen Shot 2019-04-04 at 9 30 16 AM

Do you have any idea as to why this would be?

timothyjmarkham avatar Apr 04 '19 14:04 timothyjmarkham