MCPcopy Create free account
hub / github.com/RenderKit/oidn / usmAlloc

Method usmAlloc

devices/cpu/cpu_engine.cpp:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 void* CPUEngine::usmAlloc(size_t byteSize, Storage storage)
166 {
167 if (storage != Storage::Host && storage != Storage::Device && storage != Storage::Managed)
168 throw Exception(Error::InvalidArgument, "invalid storage mode");
169
170 if (byteSize == 0)
171 return nullptr;
172 return alignedMalloc(byteSize);
173 }
174
175 void CPUEngine::usmFree(void* ptr, Storage storage)
176 {

Callers

nothing calls this directly

Calls 2

ExceptionFunction · 0.85
alignedMallocFunction · 0.85

Tested by

no test coverage detected