diff options
Diffstat (limited to 'test cases/cuda/6 std/main.cu')
| -rw-r--r-- | test cases/cuda/6 std/main.cu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/cuda/6 std/main.cu b/test cases/cuda/6 std/main.cu index a01030789..a2ffba489 100644 --- a/test cases/cuda/6 std/main.cu +++ b/test cases/cuda/6 std/main.cu @@ -1,14 +1,14 @@ #include <cuda_runtime.h> #include <iostream> -auto cuda_devices() { +auto cuda_devices(void) { int result = 0; cudaGetDeviceCount(&result); return result; } -int main() { +int main(void) { int n = cuda_devices(); if (n == 0) { std::cout << "No Cuda hardware found. Exiting.\n"; |
