| 44 | } |
| 45 | |
| 46 | bool DeviceInfo::fitForComputations() const |
| 47 | { |
| 48 | // according to https://en.wikipedia.org/wiki/CUDA Compute Capability (CUDA SDK support vs. Microarchitecture) table |
| 49 | if ( runtimeVersion / 1000 >= 12 && computeMajor < 5 ) |
| 50 | return false; |
| 51 | if ( runtimeVersion / 1000 > 10 && ( computeMajor < 3 || ( computeMajor == 3 && computeMinor < 5 ) ) ) |
| 52 | return false; |
| 53 | |
| 54 | return runtimeVersion <= driverVersion; |
| 55 | } |
| 56 | |
| 57 | bool isCudaAvailable( int* driverVersionOut, int* runtimeVersionOut, int* computeMajorOut, int* computeMinorOut ) |
| 58 | { |
no outgoing calls