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

Function bufferFree

src/backend/opencl/memory.cpp:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void bufferFree(cl::Buffer *buf) {
112 if (buf) {
113 cl_mem mem = (*buf)();
114 delete buf;
115 memoryManager().unlock(static_cast<void *>(mem), false);
116 }
117}
118
119void memLock(const cl::Buffer *ptr) {
120 cl_mem mem = static_cast<cl_mem>((*ptr)());

Callers 15

sortByKeyBatchedFunction · 0.85
convSepFunction · 0.85
meanFirstFunction · 0.85
csr2cooFunction · 0.85
regionsFunction · 0.85
convolve_ndFunction · 0.85
orbFunction · 0.85
scanFirstByKeyFunction · 0.85
scanDimFunction · 0.85
whereFunction · 0.85
scanFirstFunction · 0.85
fastFunction · 0.85

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected