diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-12-15 20:57:01 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-12-15 20:57:01 (GMT) |
commit | c59811a233267a21fdea14af4bc6583af0f8d9b0 (patch) | |
tree | 65236f8adc333d4e565dae2e65fa07d1d857af8a /Tests/CudaOnly/WithDefs | |
parent | 59461c2696e46f5d3eaf5753ee4f7d2ee6eb71a6 (diff) | |
download | CMake-c59811a233267a21fdea14af4bc6583af0f8d9b0.zip CMake-c59811a233267a21fdea14af4bc6583af0f8d9b0.tar.gz CMake-c59811a233267a21fdea14af4bc6583af0f8d9b0.tar.bz2 |
CUDA: Tests now state why they are failing when no CUDA card is found.
Diffstat (limited to 'Tests/CudaOnly/WithDefs')
-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; |