Skip CUDA tests when built with CUDA but no GPUs available; rename cuda tests so...
authorEdward Yang <ezyang@fb.com>
Tue, 4 Dec 2018 02:44:06 +0000 (18:44 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Dec 2018 02:49:59 +0000 (18:49 -0800)
commit7b6c6f76f7fb545e6999ba82ef54e3ab836141d7
tree4d8f1e24514e7f7a1ecffe30e500811b859b1853
parent22ab6183c5ebfdaa9545a97c180f99d830ae79a0
Skip CUDA tests when built with CUDA but no GPUs available; rename cuda tests so they're obvious.

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

Reviewed By: soumith

Differential Revision: D13304398

fbshipit-source-id: d5e2cda965ce8bc1721489b282336ea3ca7f0471
aten/src/ATen/cuda/CUDAContext.h
aten/src/ATen/test/CMakeLists.txt
aten/src/ATen/test/cuda_apply_test.cpp [moved from aten/src/ATen/test/apply_test.cpp with 90% similarity]
aten/src/ATen/test/cuda_cudnn_test.cpp [moved from aten/src/ATen/test/cudnn_test.cpp with 90% similarity]
aten/src/ATen/test/cuda_half_test.cu
aten/src/ATen/test/cuda_integer_divider_test.cu [moved from aten/src/ATen/test/integer_divider_test.cu with 98% similarity]
aten/src/ATen/test/cuda_optional_test.cu
aten/src/ATen/test/cuda_packedtensoraccessor_test.cu
aten/src/ATen/test/cuda_rng_test.cpp
aten/src/ATen/test/cuda_stream_test.cpp [moved from aten/src/ATen/test/stream_test.cpp with 95% similarity]