compute-runtime/shared/test/common/mocks/mock_hw_helper.h

30 lines
663 B
C++

/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h"
namespace NEO {
template <typename GfxFamily>
class MockHwHelperWithFenceAllocation : public HwHelperHw<GfxFamily> {
public:
bool isFenceAllocationRequired(const HardwareInfo &hwInfo) const override {
return true;
}
};
template <typename GfxFamily>
class MockHwHelperWithLocalMemory : public HwHelperHw<GfxFamily> {
public:
bool isLocalMemoryEnabled(const HardwareInfo &hwInfo) const override {
return true;
}
};
} // namespace NEO