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

Method get

python/mod_cvcuda/WorkspaceCache.hpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 Mem get(cvcuda::WorkspaceMemRequirements req, std::optional<cudaStream_t> stream)
140 {
141 if (req.size == 0)
142 return {};
143
144 ++m_outstandingAllocs;
145 auto opt = m_memCache.get(req.size, req.alignment, stream);
146 if (opt)
147 return std::move(opt).value();
148
149 return create(req);
150 }
151
152 void put(Mem &&mem, std::optional<cudaStream_t> stream)
153 {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected