| 73 | }; |
| 74 | |
| 75 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected