(#29016)
Summary:
Adding limitation on launch config for grid size
Test added in test_cuda;
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29016
Differential Revision: D18293788
Pulled By: ngimel
fbshipit-source-id: 44de308b05a4fe44bfffc2f3713fd9fa67ef74fa