MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / memFree

Function memFree

src/backend/opencl/memory.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void memFree(cl::Buffer *ptr) {
82 cl::Buffer *buf = reinterpret_cast<cl::Buffer *>(ptr);
83 cl_mem mem = static_cast<cl_mem>((*buf)());
84 delete buf;
85 return memoryManager().unlock(static_cast<void *>(mem), false);
86}
87
88void memFree(cl_mem ptr) {
89 return memoryManager().unlock(static_cast<void *>(ptr), false);

Callers 1

magma_freeFunction · 0.50

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected