sppark 0.1.14

Zero-knowledge template library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cuda_runtime.h>

int main()
{
    int n;
    if (cudaGetDeviceCount(&n)!=cudaSuccess || n==0)
        return 1;
    bool found = false;
    while (n--) {
        cudaDeviceProp prop;
        found |= cudaGetDeviceProperties(&prop, n)==cudaSuccess &&
                 prop.major>=7;
    }
    return !found;
}