| 36 | } |
| 37 | |
| 38 | WorkspaceLease::~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 | |
| 48 | WorkspaceCache::WorkspaceCache(nvcv::Allocator allocator) |
| 49 | : m_eventCache(std::make_shared<nvcv::util::EventCache>()) |