MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_create_memory_manager

Function af_create_memory_manager

src/api/c/memory.cpp:392–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392af_err af_create_memory_manager(af_memory_manager *manager) {
393 try {
394 AF_CHECK(af_init());
395 std::unique_ptr<MemoryManager> m(new MemoryManager());
396 *manager = getHandle(*m.release());
397 }
398 CATCHALL;
399
400 return AF_SUCCESS;
401}
402
403af_err af_release_memory_manager(af_memory_manager handle) {
404 try {

Callers 2

SetUpMethod · 0.50
TESTFunction · 0.50

Calls 2

af_initFunction · 0.70
getHandleFunction · 0.70

Tested by

no test coverage detected