commit | ce3788d6a5c2a39776644774c4494cfe3deedb77 | [log] [tgz] |
---|---|---|
author | Masaki Kozuki <mkozuki@nvidia.com> | Thu May 20 16:34:28 2021 -0700 |
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | Thu May 20 16:35:43 2021 -0700 |
tree | 670b30b2be92bb5f3b2d35b6251709d1559f356f | |
parent | f879e70fc1ca86d9ce544bc3cd27c629ce09201d [diff] |
Add `#pragma once` to CUDA foreach headers (#58209) Summary: Per the title, adding `#pragma once` to cuda headers related to foreach functions. cc: ptrblck Pull Request resolved: https://github.com/pytorch/pytorch/pull/58209 Reviewed By: ailzhang Differential Revision: D28558620 Pulled By: ngimel fbshipit-source-id: 195f68435999eb7409ba904daf6fc5f0962d375d
diff --git a/aten/src/ATen/native/cuda/ForeachFunctors.cuh b/aten/src/ATen/native/cuda/ForeachFunctors.cuh index 7c56368..51fe5c4 100644 --- a/aten/src/ATen/native/cuda/ForeachFunctors.cuh +++ b/aten/src/ATen/native/cuda/ForeachFunctors.cuh
@@ -1,3 +1,4 @@ +#pragma once #include <ATen/native/ForeachUtils.h> #include <ATen/native/cuda/MultiTensorApply.cuh>
diff --git a/aten/src/ATen/native/cuda/MultiTensorApply.cuh b/aten/src/ATen/native/cuda/MultiTensorApply.cuh index ab54c11..cb89e14 100644 --- a/aten/src/ATen/native/cuda/MultiTensorApply.cuh +++ b/aten/src/ATen/native/cuda/MultiTensorApply.cuh
@@ -1,3 +1,4 @@ +#pragma once #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <c10/cuda/CUDAGuard.h>