The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
380 B
21 lines
380 B
5 years ago
|
#include <stdio.h>
|
||
|
#include <cuda_runtime.h>
|
||
|
#include "shared/kernels.h"
|
||
|
|
||
|
|
||
|
int main(void) {
|
||
|
int cuda_devices = 0;
|
||
|
cudaGetDeviceCount(&cuda_devices);
|
||
|
if(cuda_devices == 0) {
|
||
|
printf("No Cuda hardware found. Exiting.\n");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
if(run_tests() != 0){
|
||
|
printf("CUDA tests failed! Exiting.\n");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|