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

Function af_memory_manager_get_active_device_id

src/api/c/memory.cpp:485–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483// Native memory interface wrapper implementations
484
485af_err af_memory_manager_get_active_device_id(af_memory_manager handle,
486 int *id) {
487 try {
488 MemoryManager &manager = getMemoryManager(handle);
489 *id = manager.wrapper->getActiveDeviceId();
490 }
491
492 CATCHALL;
493
494 return AF_SUCCESS;
495}
496
497af_err af_memory_manager_native_alloc(af_memory_manager handle, void **ptr,
498 size_t size) {

Callers

nothing calls this directly

Calls 1

getActiveDeviceIdMethod · 0.45

Tested by

no test coverage detected