MCPcopy Create free account
hub / github.com/apache/singa / Free

Method Free

src/core/device/opencl_device.cc:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void OpenclDevice::Free(void* p) {
143 if (!p) return;
144 cl_mem buffer = static_cast<cl_mem>(p);
145 clReleaseMemObject(buffer);
146}
147
148} // namespace singa
149

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected