| 223 | #endif |
| 224 | |
| 225 | static GpuFuncTable* gpuFuncTable() |
| 226 | { |
| 227 | #ifdef DYNAMIC_CUDA_SUPPORT |
| 228 | static EmptyFuncTable stub; |
| 229 | static GpuFuncTable* libFuncTable = loadCudaSupportLib() ? gpuFactory(): (GpuFuncTable*)&stub; |
| 230 | static GpuFuncTable *funcTable = libFuncTable ? libFuncTable : (GpuFuncTable*)&stub; |
| 231 | #else |
| 232 | # ifdef USE_CUDA |
| 233 | static CudaFuncTable impl; |
| 234 | static GpuFuncTable* funcTable = &impl; |
| 235 | #else |
| 236 | static EmptyFuncTable stub; |
| 237 | static GpuFuncTable* funcTable = &stub; |
| 238 | #endif |
| 239 | #endif |
| 240 | return funcTable; |
| 241 | } |
| 242 | |
| 243 | static DeviceInfoFuncTable* deviceInfoFuncTable() |
| 244 | { |