Make sure preallocated output is contiguous before using it
Merge pull request #1198 from lamblin/fix_gpucontiguous_output_mem

Make sure preallocated output is contiguous before using it