| 241 | } |
| 242 | |
| 243 | static 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 //////////////////////// |
no test coverage detected