| 58 | size_t getMemStepSize(void); |
| 59 | |
| 60 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected