MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fitForComputations

Method fitForComputations

source/MRCuda/MRCudaBasic.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool 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
57bool isCudaAvailable( int* driverVersionOut, int* runtimeVersionOut, int* computeMajorOut, int* computeMinorOut )
58{

Callers 2

mainFunction · 0.80
isCudaAvailableFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64