/* * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/gmm_helper/gmm_lib.h" #include namespace NEO { class GmmHandleAllocator { public: virtual ~GmmHandleAllocator() = default; virtual void *createHandle(const GMM_RESOURCE_INFO *gmmResourceInfo) { return nullptr; } virtual void destroyHandle(void *handle) { } virtual bool openHandle(void *handle, GMM_RESOURCE_INFO *dstResInfo, size_t handleSize) { return true; } virtual size_t getHandleSize() { return 0; } }; } // namespace NEO