Add c10 cuda library. (#13900)
authorEdward Yang <ezyang@fb.com>
Mon, 19 Nov 2018 16:13:07 +0000 (08:13 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 19 Nov 2018 16:20:07 +0000 (08:20 -0800)
commit928687bb24710c16d6ec3ed7c0ca906cec13ee1b
treec51eea842adab20ee9eddce0dcbd6b2ea7ad664e
parent2681852438f9f80b43fd2502d83839140733b68c
Add c10 cuda library. (#13900)

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

Add c10 cuda library.

Right now, this is not used by anything, and only tests if the CUDA
headers are available (and not, e.g., that linking works.)

Extra changes:
- cmake/public/cuda.cmake now is correctly include guarded, so you
  can include it multiple times without trouble.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Reviewed By: smessmer

Differential Revision: D13025313

fbshipit-source-id: fda85b4c35783ffb48ddd6bbb98dbd9154119d86
c10/CMakeLists.txt
c10/cuda/CMakeLists.txt [new file with mode: 0644]
c10/cuda/CUDAMacros.h [new file with mode: 0644]
c10/cuda/impl/CUDATest.cpp [new file with mode: 0644]
c10/cuda/impl/CUDATest.h [new file with mode: 0644]
c10/cuda/impl/cuda_cmake_macros.h.in [new file with mode: 0644]
c10/cuda/test/CMakeLists.txt [new file with mode: 0644]
c10/cuda/test/impl/CUDATest.cpp [new file with mode: 0644]
caffe2/CMakeLists.txt
cmake/public/cuda.cmake