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

Class Allocator

src/backend/cuda/memory.hpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58size_t getMemStepSize(void);
59
60class Allocator final : public arrayfire::common::AllocatorInterface {
61 public:
62 Allocator();
63 ~Allocator() = default;
64 void shutdown() override;
65 int getActiveDeviceId() override;
66 size_t getMaxMemorySize(int id) override;
67 void *nativeAlloc(const size_t bytes) override;
68 void nativeFree(void *ptr) override;
69};
70
71// CUDA Pinned Memory does not depend on device
72// So we pass 1 as numDevices to the constructor so that it creates 1 vector

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected