Check CUDA kernel launches (fbcode/caffe2/aten/src/ATen/native/cuda/) (#47207)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47207
Add a safety check TORCH_CUDA_KERNEL_LAUNCH_CHECK() after each kernel launch. This diff only chnges the files inside the directory fbcode/caffe2/aten/src/ATen/native/cuda/. Will create similar DIFFS per directory.
Test Plan:
Run test with:
```
buck build //caffe2/aten:ATen-cu
```
Results:
```
[fjponce@30644.od ~/fbcode (c32bce1c)]$ buck build //caffe2/aten:ATen-cu
Building: finished in 0.8 sec (100%) 1/1 jobs, 0 updated
Total time: 1.0 sec
More details at https://www.internalfb.com/intern/buck/build/c8d463e5-2d8b-4566-97f0-2d355eda8f2d
[fjponce@30644.od ~/fbcode (b78b1f2d)]$
```
The files does not appear anymore in the list when executing python script
https://www.internalfb.com/intern/paste/P147803236/
Reviewed By: r-barnes
Differential Revision: D24685062
fbshipit-source-id: 6ef7989d28b6629752d98dc36dd4a92c2507204c
Author
Francisco Javier Ponce