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

Function gpu_doesGpuSupportMemPools

quest/src/gpu/gpu_config.cpp:292–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291
292bool gpu_doesGpuSupportMemPools() {
293#if COMPILE_CUDA
294 assert_gpuHasBeenBound(hasGpuBeenBound);
295
296 int supports;
297 CUDA_CHECK( cudaDeviceGetAttribute(&supports, cudaDevAttrMemoryPoolsSupported, getBoundGpuId()) );
298 return (bool) supports;
299
300#else
301 error_gpuQueriedButGpuNotCompiled();
302 return false;
303#endif
304}
305
306
307qindex gpu_getMaxNumConcurrentThreads() {

Callers 2

printGpuInfoFunction · 0.85

Calls 3

assert_gpuHasBeenBoundFunction · 0.85
getBoundGpuIdFunction · 0.85

Tested by

no test coverage detected