MCPcopy Create free account
hub / github.com/creatale/node-dv / deviceInfoFuncTable

Function deviceInfoFuncTable

deps/opencv/modules/core/src/gpumat.cpp:243–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static DeviceInfoFuncTable* deviceInfoFuncTable()
244{
245#ifdef DYNAMIC_CUDA_SUPPORT
246 static EmptyDeviceInfoFuncTable stub;
247 static DeviceInfoFuncTable* libFuncTable = loadCudaSupportLib() ? deviceInfoFactory(): (DeviceInfoFuncTable*)&stub;
248 static DeviceInfoFuncTable* funcTable = libFuncTable ? libFuncTable : (DeviceInfoFuncTable*)&stub;
249#else
250# ifdef USE_CUDA
251 static CudaDeviceInfoFuncTable impl;
252 static DeviceInfoFuncTable* funcTable = &impl;
253#else
254 static EmptyDeviceInfoFuncTable stub;
255 static DeviceInfoFuncTable* funcTable = &stub;
256#endif
257#endif
258 return funcTable;
259}
260
261
262//////////////////////////////// Initialization & Info ////////////////////////

Callers 15

setDeviceMethod · 0.85
getDeviceMethod · 0.85
resetDeviceMethod · 0.85
deviceSupportsMethod · 0.85
builtWithMethod · 0.85
hasMethod · 0.85
hasPtxMethod · 0.85
hasBinMethod · 0.85
hasEqualOrLessPtxMethod · 0.85
hasEqualOrGreaterMethod · 0.85
hasEqualOrGreaterPtxMethod · 0.85

Calls 2

loadCudaSupportLibFunction · 0.85
deviceInfoFactoryFunction · 0.85

Tested by

no test coverage detected