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

Class Allocator

src/backend/opencl/memory.hpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected