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

Class AllocatorPinned

src/backend/oneapi/memory.hpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75};
76
77class AllocatorPinned final : public common::AllocatorInterface {
78 public:
79 AllocatorPinned();
80 ~AllocatorPinned() = default;
81 void shutdown() override;
82 int getActiveDeviceId() override;
83 size_t getMaxMemorySize(int id) override;
84 void *nativeAlloc(const size_t bytes) override;
85 void nativeFree(void *ptr) override;
86
87 private:
88 std::vector<std::map<void *, void *>> pinnedMaps;
89};
90
91} // namespace oneapi
92} // namespace arrayfire

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected