Move CUDAStreamInternals inside detail namespace. (#14109)
authorEdward Yang <ezyang@fb.com>
Tue, 20 Nov 2018 01:01:34 +0000 (17:01 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 20 Nov 2018 01:05:46 +0000 (17:05 -0800)
commit50b914aeebdcfbb379be59423995d65b51b09cda
tree3acf3508e39601dda0f49c102ae051b794e4617d
parente58bbbac18d6abb1e9ff86f23a6a94299bc0c483
Move CUDAStreamInternals inside detail namespace. (#14109)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14109

Previously it was at the top level, because the author was under
the impression that you could only refer to top-level C++ names
from C, but this is not true; you just need to make a stub struct
conditioned on __cplusplus.

Reviewed By: smessmer

Differential Revision: D13104694

fbshipit-source-id: ecb7ae6dcfa4ab4e062aad7a886937dca15fd1b2
12 files changed:
aten/src/ATen/cuda/CUDAContext.cpp
aten/src/ATen/cuda/CUDAGuard.h
aten/src/ATen/cuda/CUDAStream.cpp
aten/src/ATen/cuda/CUDAStream.h
aten/src/ATen/cuda/detail/CUDAGuardImpl.cpp
aten/src/ATen/cuda/detail/CUDAGuardImpl.h
aten/src/ATen/test/stream_test.cpp
aten/src/THC/THCGeneral.cpp
aten/src/THC/THCGeneral.h.in
aten/src/THC/THCStream.cpp
aten/src/THC/THCStream.h
torch/csrc/cuda/Stream.cpp