| 234 | |
| 235 | |
| 236 | bool gpu_isDirectGpuCommPossible() { |
| 237 | #if COMPILE_CUDA |
| 238 | |
| 239 | if (!comm_isMpiGpuAware()) |
| 240 | return false; |
| 241 | |
| 242 | if (!gpu_isGpuAvailable()) |
| 243 | return false; |
| 244 | |
| 245 | /// @todo |
| 246 | /// and are GPUs compatible? |
| 247 | /// (the above might need to call a GPU-compiled func) |
| 248 | |
| 249 | return true; |
| 250 | |
| 251 | #else |
| 252 | error_gpuQueriedButGpuNotCompiled(); |
| 253 | return false; |
| 254 | #endif |
| 255 | } |
| 256 | |
| 257 | |
| 258 | size_t gpu_getCurrentAvailableMemoryInBytes() { |
no test coverage detected