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

Method ~WorkspaceLease

python/mod_cvcuda/WorkspaceCache.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38WorkspaceLease::~WorkspaceLease()
39{
40 if (m_host)
41 m_owner->m_host.put(std::move(m_host), m_hostReleaseStream);
42 if (m_pinned)
43 m_owner->m_pinned.put(std::move(m_pinned), m_pinnedReleaseStream);
44 if (m_cuda)
45 m_owner->m_cuda.put(std::move(m_cuda), m_hostReleaseStream);
46}
47
48WorkspaceCache::WorkspaceCache(nvcv::Allocator allocator)
49 : m_eventCache(std::make_shared<nvcv::util::EventCache>())

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected