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

Method nativeAlloc

src/backend/common/MemoryManagerBase.hpp:64–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 int getActiveDeviceId() { return nmi_->getActiveDeviceId(); }
63 size_t getMaxMemorySize(int id) { return nmi_->getMaxMemorySize(id); }
64 void *nativeAlloc(const size_t bytes) { return nmi_->nativeAlloc(bytes); }
65 void nativeFree(void *ptr) { nmi_->nativeFree(ptr); }
66 virtual spdlog::logger *getLogger() final { return nmi_->getLogger(); }
67 virtual void setAllocator(std::unique_ptr<AllocatorInterface> nmi) {

Callers 1

allocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected