T90561249: Enforce kernel launch checks (#58178)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/58178
https://www.internalfb.com/T90561249: change the test to enforce
Test Plan:
buck test //caffe2/test:kernel_launch_checks
before fixing LinearAlgebra.cu and file close: https://www.internalfb.com/intern/testinfra/testconsole/testrun/1970324893386017/
after: https://www.internalfb.com/intern/testinfra/testconsole/testrun/2814749824394650/
Reviewed By: r-barnes
Differential Revision: D28390166
fbshipit-source-id: 8a217ce8c0b204922005c731aa38bc03f70fabcc