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

Class Allocator

src/backend/oneapi/memory.hpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64size_t getMemStepSize(void);
65
66class Allocator final : public common::AllocatorInterface {
67 public:
68 Allocator();
69 ~Allocator() = default;
70 void shutdown() override;
71 int getActiveDeviceId() override;
72 size_t getMaxMemorySize(int id) override;
73 void *nativeAlloc(const size_t bytes) override;
74 void nativeFree(void *ptr) override;
75};
76
77class AllocatorPinned final : public common::AllocatorInterface {
78 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected