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