Also apply HDF5OutputLayer fix to GPU version.
Merge pull request #823 from jeffdonahue/hdf5output-gpu-fix

Apply HDF5OutputLayer fix to GPU version