torch/cutorch — pull request #13 by IoannisAntonoglou (2014-06-06 11:14:32+00:00)
Title: Support for large non contiguous tensors

The old implementation starts an one dimensional grid for the non-contiguous copy kernel. As a result for large tensors the implementation would try to open more than 65536 blocks in the first dimension and it would throw an invalid configuration error. This pull request fixes that by starting a 3 dimensional grid and it can support non-contiguous copies of Tensor size up to 65535 * 65535 * 65535 * 16 elements.