diff options
author | Brad King <brad.king@kitware.com> | 2016-12-16 13:26:20 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-12-16 13:26:20 (GMT) |
commit | b5c7835e27dc4bb009d508a5b280ebd01b2fcd71 (patch) | |
tree | 01a1a0e6f4633c8f4eb609b9bd9600150d9b821f /Tests/CudaOnly/WithDefs/main.notcu | |
parent | 58dc3745ec925923713f16c0e77bc9277b29eb7d (diff) | |
parent | c59811a233267a21fdea14af4bc6583af0f8d9b0 (diff) | |
download | CMake-b5c7835e27dc4bb009d508a5b280ebd01b2fcd71.zip CMake-b5c7835e27dc4bb009d508a5b280ebd01b2fcd71.tar.gz CMake-b5c7835e27dc4bb009d508a5b280ebd01b2fcd71.tar.bz2 |
Merge topic 'cuda_tests_now_explain_why_they_fail'
c59811a2 CUDA: Tests now state why they are failing when no CUDA card is found.
Diffstat (limited to 'Tests/CudaOnly/WithDefs/main.notcu')
-rw-r--r-- | Tests/CudaOnly/WithDefs/main.notcu | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CudaOnly/WithDefs/main.notcu b/Tests/CudaOnly/WithDefs/main.notcu index 6b02bbc..33a49d2 100644 --- a/Tests/CudaOnly/WithDefs/main.notcu +++ b/Tests/CudaOnly/WithDefs/main.notcu @@ -40,6 +40,7 @@ int main(int argc, char **argv) err = cudaGetDeviceCount(&nDevices); if(err != cudaSuccess) { + std::cerr << cudaGetErrorString(err) << std::endl; return 1; } return 0; |