| 275 | |
| 276 | |
| 277 | size_t gpu_getTotalMemoryInBytes() { |
| 278 | #if COMPILE_CUDA |
| 279 | assert_gpuHasBeenBound(hasGpuBeenBound); |
| 280 | |
| 281 | size_t free, total; |
| 282 | CUDA_CHECK( cudaMemGetInfo(&free, &total) ); |
| 283 | return total; |
| 284 | |
| 285 | #else |
| 286 | error_gpuQueriedButGpuNotCompiled(); |
| 287 | return 0; |
| 288 | #endif |
| 289 | } |
| 290 | |
| 291 | |
| 292 | bool gpu_doesGpuSupportMemPools() { |
no test coverage detected