/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/debug_settings/debug_settings_manager.h" #include "opencl/source/gtpin/gtpin_hw_helper.h" namespace NEO { template bool GTPinHwHelperHw::canUseSharedAllocation(const HardwareInfo &hwInfo) const { bool canUseSharedAllocation = false; if (DebugManager.flags.GTPinAllocateBufferInSharedMemory.get() != -1) { canUseSharedAllocation = !!DebugManager.flags.GTPinAllocateBufferInSharedMemory.get(); } canUseSharedAllocation &= hwInfo.capabilityTable.ftrSvm; return canUseSharedAllocation; } } // namespace NEO