Fixed uninitialized memory error when using multiple GPUs
Merge pull request #583 from peastman/master

Fixed uninitialized memory error when using multiple GPUs