Debian Codegraph @

test cases/cuda/4 shared/main.cu

raw
1 #include <stdio.h>
2 #include <cuda_runtime.h>
3 #include "shared/kernels.h"
4
5
6 int main(void) {
7 int cuda_devices = 0;
8 cudaGetDeviceCount(&cuda_devices);
9 if(cuda_devices == 0) {
10 printf("No Cuda hardware found. Exiting.\n");
11 return 0;
12 }
13
14 if(run_tests() != 0){
15 printf("CUDA tests failed! Exiting.\n");
16 return 0;
17 }
18
19 return 0;
20 }