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

Method raw_dev_malloc

src/core/test/mem_alloc.cpp:520–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518 MGB_CUDA_CHECK(cudaMemGetInfo(&free, &tot));
519 }
520 void raw_dev_malloc(void** ptr, size_t size) override {
521 MGB_CUDA_CHECK(cudaMalloc(ptr, size));
522 }
523 void raw_dev_free(void* ptr) override { MGB_CUDA_CHECK(cudaFree(ptr)); }
524};
525#endif

Callers 1

test_free_memFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected