MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / megcoreMalloc

Function megcoreMalloc

dnn/src/common/megcore/public_api/device.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64megcoreStatus_t megcoreMalloc(
65 megcoreDeviceHandle_t handle, void** devPtr, size_t sizeInBytes) {
66 megdnn_assert(handle);
67 *devPtr = handle->content->malloc(sizeInBytes);
68 return megcoreSuccess;
69}
70
71megcoreStatus_t megcoreFree(megcoreDeviceHandle_t handle, void* devPtr) {
72 megdnn_assert(handle);

Callers 7

TEST_FFunction · 0.85
TEST_FFunction · 0.85
mallocMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

mallocMethod · 0.45

Tested by 7

TEST_FFunction · 0.68
TEST_FFunction · 0.68
mallocMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68