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

Method Malloc

src/core/memory/memory.cc:90–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void CnMemPool::Malloc(void **ptr, const size_t size) {
91 if (!initialized_) Init();
92 cnmemStatus_t status = cnmemMalloc(ptr, size, NULL);
93 CHECK_EQ(status, cnmemStatus_t::CNMEM_STATUS_SUCCESS)
94 << " " << cnmemGetErrorString(status);
95}
96
97void CnMemPool::Free(void *ptr) {
98 CHECK(initialized_)

Callers 2

TESTFunction · 0.45
mutable_dataMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36