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

Class AllocatorPinned

src/backend/opencl/memory.hpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected