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

Function assertHeapObjectGpuMemIsAllocated

quest/src/gpu/gpu_config.cpp:559–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557
558template <typename T>
559void assertHeapObjectGpuMemIsAllocated(T obj) {
560
561 if (! mem_isAllocated(util_getGpuMemPtr(obj)) || ! getQuESTEnv().isGpuAccelerated)
562 error_gpuCopyButMatrixNotGpuAccelerated();
563}
564
565
566void gpu_copyArray(qcomp* dest, qcomp* src, qindex dim) {

Callers 2

gpu_copyCpuToGpuFunction · 0.85
gpu_copyGpuToCpuFunction · 0.85

Calls 4

mem_isAllocatedFunction · 0.85
util_getGpuMemPtrFunction · 0.85
getQuESTEnvFunction · 0.85

Tested by

no test coverage detected