MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / gpu_isDirectGpuCommPossible

Function gpu_isDirectGpuCommPossible

quest/src/gpu/gpu_config.cpp:236–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236bool 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
258size_t gpu_getCurrentAvailableMemoryInBytes() {

Callers 8

printGpuInfoFunction · 0.85
getEnvironmentStringFunction · 0.85
exchangeGpuSubBuffersFunction · 0.85
asynchSendGpuSubBufferFunction · 0.85
receiveArrayToGpuBufferFunction · 0.85

Calls 3

comm_isMpiGpuAwareFunction · 0.85
gpu_isGpuAvailableFunction · 0.85

Tested by

no test coverage detected