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

Class Allocator

src/backend/cpu/memory.hpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53size_t getMemStepSize(void);
54
55class Allocator final : public common::AllocatorInterface {
56 public:
57 Allocator();
58 ~Allocator() = default;
59 void shutdown() override;
60 int getActiveDeviceId() override;
61 size_t getMaxMemorySize(int id) override;
62 void *nativeAlloc(const size_t bytes) override;
63 void nativeFree(void *ptr) override;
64};
65
66} // namespace cpu
67} // namespace arrayfire

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected