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

Method Free

src/core/memory/memory.cc:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void CnMemPool::Free(void *ptr) {
98 CHECK(initialized_)
99 << "Cannot free the memory as the pool is not initialzied";
100 cnmemStatus_t status = cnmemFree(ptr, NULL);
101 CHECK_EQ(status, cnmemStatus_t::CNMEM_STATUS_SUCCESS)
102 << " " << cnmemGetErrorString(status);
103}
104
105// ===========================================================================
106void CudaMemPool::Malloc(void **ptr, const size_t size) {

Callers 2

TESTFunction · 0.45
free_dataMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36