MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / getMemDeleter

Method getMemDeleter

python/mod_cvcuda/WorkspaceCache.hpp:187–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 auto getMemDeleter() const
188 {
189 return [this](cvcuda::WorkspaceMem &mem)
190 {
191 // free the memory
192 freeMem(mem.data, mem.req.size, mem.req.alignment);
193 // return the event to the event cache
194 if (mem.ready)
195 {
196 m_eventCache->put(nvcv::util::CudaEvent(mem.ready));
197 mem.ready = nullptr;
198 }
199 };
200 }
201
202 Mem create(cvcuda::WorkspaceMemRequirements req)
203 {

Callers

nothing calls this directly

Calls 2

CudaEventClass · 0.85
putMethod · 0.45

Tested by

no test coverage detected