Cleanup headers

Make TUs and headers self-contained, remove unused headers

Signed-off-by: Daniel Chabrowski <daniel.chabrowski@intel.com>
This commit is contained in:
Daniel Chabrowski
2022-05-17 19:04:23 +00:00
committed by Compute-Runtime-Automation
parent ac3005a463
commit 7463e1970b
88 changed files with 211 additions and 118 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,6 +10,8 @@
#include "third_party/aub_stream/headers/aubstream.h"
#include <sstream>
namespace NEO {
MMIOList AubHelper::getAdditionalMmioList() {

View File

@@ -15,6 +15,7 @@
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/heap_helper.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/string.h"
#include "shared/source/indirect_heap/indirect_heap.h"
#include "shared/source/memory_manager/allocations_list.h"
#include "shared/source/memory_manager/memory_manager.h"

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,6 +10,7 @@
#include "shared/source/command_container/command_encoder.h"
#include "shared/source/command_container/walker_partition_interface.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h"
@@ -486,9 +487,9 @@ void programPartitionedWalker(void *&inputAddress, uint32_t &totalBytesProgramme
//inital setup section
1. MI_LOAD_REGISTER(PREDICATION_MASK, active partition mask )
//loop 1 - loop as long as there are partitions to be serviced
2. MI_ATOMIC_INC( ATOMIC LOCATION #31 within CMD buffer )
2. MI_ATOMIC_INC( ATOMIC LOCATION #31 within CMD buffer )
3. MI_LOAD_REGISTER_REG ( ATOMIC RESULT -> WPARID )
4. MI_SET_PREDICATE( WPARID MODE )
4. MI_SET_PREDICATE( WPARID MODE )
5. BATCH_BUFFER_START( LOCATION #28 ) // this will not be executed if partition outside of active virtual partitions
//loop 1 ends here, if we are here it means there are no more partitions
6. MI_SET_PREDICATE ( OFF )

View File

@@ -12,7 +12,7 @@
namespace NEO {
LinearStream::LinearStream(GraphicsAllocation *gfxAllocation, void *buffer, size_t bufferSize)
: sizeUsed(0), maxAvailableSpace(bufferSize), buffer(buffer), graphicsAllocation(gfxAllocation) {
: maxAvailableSpace(bufferSize), buffer(buffer), graphicsAllocation(gfxAllocation) {
}
LinearStream::LinearStream(void *buffer, size_t bufferSize)
@@ -20,20 +20,13 @@ LinearStream::LinearStream(void *buffer, size_t bufferSize)
}
LinearStream::LinearStream(GraphicsAllocation *gfxAllocation)
: sizeUsed(0), graphicsAllocation(gfxAllocation) {
: graphicsAllocation(gfxAllocation) {
if (gfxAllocation) {
maxAvailableSpace = gfxAllocation->getUnderlyingBufferSize();
buffer = gfxAllocation->getUnderlyingBuffer();
} else {
maxAvailableSpace = 0;
buffer = nullptr;
}
}
LinearStream::LinearStream()
: LinearStream(nullptr) {
}
LinearStream::LinearStream(void *buffer, size_t bufferSize, CommandContainer *cmdContainer, size_t batchBufferEndSize)
: LinearStream(buffer, bufferSize) {
this->cmdContainer = cmdContainer;

View File

@@ -8,9 +8,7 @@
#pragma once
#include "shared/source/command_container/cmdcontainer.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/ptr_math.h"
#include "shared/source/helpers/string.h"
#include <atomic>
#include <cstddef>
@@ -22,11 +20,15 @@ class GraphicsAllocation;
class LinearStream {
public:
virtual ~LinearStream() = default;
LinearStream();
LinearStream() = default;
LinearStream(void *buffer, size_t bufferSize);
LinearStream(GraphicsAllocation *buffer);
LinearStream(GraphicsAllocation *gfxAllocation);
LinearStream(GraphicsAllocation *gfxAllocation, void *buffer, size_t bufferSize);
LinearStream(void *buffer, size_t bufferSize, CommandContainer *cmdContainer, size_t batchBufferEndSize);
LinearStream(const LinearStream &) = delete;
LinearStream &operator=(const LinearStream &) = delete;
void *getCpuBase() const;
void *getSpace(size_t size);
size_t getMaxAvailableSpace() const;
@@ -48,13 +50,13 @@ class LinearStream {
}
protected:
std::atomic<size_t> sizeUsed;
size_t maxAvailableSpace;
void *buffer;
GraphicsAllocation *graphicsAllocation;
CommandContainer *cmdContainer = nullptr;
size_t batchBufferEndSize = 0;
uint64_t gpuBase = 0;
std::atomic<size_t> sizeUsed{0};
size_t maxAvailableSpace{0};
void *buffer{nullptr};
GraphicsAllocation *graphicsAllocation{nullptr};
CommandContainer *cmdContainer{nullptr};
size_t batchBufferEndSize{0};
uint64_t gpuBase{0};
};
inline void *LinearStream::getCpuBase() const {

View File

@@ -8,6 +8,7 @@
#include "shared/source/command_stream/stream_properties.h"
#include "shared/source/command_stream/thread_arbitration_policy.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/kernel/grf_config.h"
#include "shared/source/os_interface/hw_info_config.h"

View File

@@ -7,16 +7,15 @@
#pragma once
#include <stdint.h>
namespace NEO {
namespace ThreadArbitrationPolicy {
#include <cstdint>
enum : int32_t {
namespace NEO {
enum ThreadArbitrationPolicy : int32_t {
AgeBased = 0,
RoundRobin = 1,
RoundRobinAfterDependency = 2,
NotPresent = -1
};
} // namespace ThreadArbitrationPolicy
} // namespace NEO

View File

@@ -11,6 +11,7 @@
#include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/string.h"
#include <sstream>
#include <string>
namespace NEO {

View File

@@ -15,6 +15,7 @@
#include "shared/source/utilities/debug_settings_reader_creator.h"
#include <cstdio>
#include <fstream>
#include <iostream>
#include <sstream>

View File

@@ -6,13 +6,10 @@
*/
#pragma once
#include <condition_variable>
#include <fstream>
#include <mutex>
#include <sstream>
#include <stdint.h>
#include <cstdint>
#include <cstdio>
#include <memory>
#include <string>
#include <thread>
enum class DebugFunctionalityLevel {
None, // Debug functionality disabled
@@ -127,8 +124,6 @@ class DebugSettingsManager {
protected:
std::unique_ptr<SettingsReader> readerImpl;
std::mutex mtx;
std::string logFileName;
bool isLoopAtDriverInitEnabled() const {
auto loopingEnabled = flags.LoopAtDriverInit.get();

View File

@@ -16,6 +16,7 @@
#include "shared/source/helpers/engine_control.h"
#include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/source/os_interface/performance_counters.h"
#include "shared/source/program/sync_buffer_handler.h"

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -8,6 +8,8 @@
#include "shared/source/device/device.h"
#include "shared/source/helpers/hw_info.h"
#include <string>
namespace NEO {
const std::string Device::getDeviceName(const HardwareInfo &hwInfo) const {

View File

@@ -5,6 +5,8 @@
*
*/
#pragma once
#include "shared/source/device_binary_format/elf/zebin_elf.h"
#include "shared/source/utilities/arrayref.h"
#include "shared/source/utilities/stackvec.h"

View File

@@ -11,6 +11,7 @@
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/hash.h"
#include "shared/source/helpers/ptr_math.h"
#include "shared/source/utilities/logger.h"
#include <algorithm>

View File

@@ -9,6 +9,7 @@
#include "shared/source/command_stream/linear_stream.h"
#include "shared/source/helpers/completion_stamp.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/utilities/stackvec.h"
#include <memory>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -11,4 +11,4 @@ namespace NEO {
std::unique_ptr<DeferredDeleter> createDeferredDeleter() {
return std::unique_ptr<DeferredDeleter>(new DeferredDeleter());
}
} // namespace NEO
} // namespace NEO

View File

@@ -7,6 +7,7 @@
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/gmm_helper/client_context/gmm_client_context.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/hw_helper.h"

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,12 +7,10 @@
#pragma once
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/common_types.h"
#include <array>
#include <bitset>
#include <string>
#include <limits>
#include <vector>
namespace NEO {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -16,6 +16,7 @@
#include <functional>
#include <memory>
#include <new>
#include <type_traits>
#ifdef _MSC_VER
#define ALIGNAS(x) __declspec(align(x))

View File

@@ -1,14 +1,14 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstdint>
#include <string>
#pragma once
namespace NEO {
struct ApiSpecificConfig {
enum ApiType { OCL,

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,7 +7,6 @@
#pragma once
#include <cstdint>
#include <type_traits>
namespace NEO {
namespace AppResourceDefines {

View File

@@ -5,7 +5,11 @@
*
*/
#include "shared/source/memory_manager/graphics_allocation.h"
#pragma once
#include "shared/source/memory_manager/allocation_type.h"
#include <cstddef>
namespace NEO {
struct AppResourceHelper {
@@ -13,5 +17,4 @@ struct AppResourceHelper {
static const char *getResourceTagStr(AllocationType type);
static void copyResourceTagStr(char *dst, AllocationType type, size_t size);
};
} // namespace NEO

View File

@@ -8,7 +8,6 @@
#pragma once
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/heap_helper.h"
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include <memory>
#include <mutex>
@@ -37,6 +36,10 @@ class BindlessHeapsHelper {
};
BindlessHeapsHelper(MemoryManager *memManager, bool isMultiOsContextCapable, const uint32_t rootDeviceIndex, DeviceBitfield deviceBitfield);
~BindlessHeapsHelper();
BindlessHeapsHelper(const BindlessHeapsHelper &) = delete;
BindlessHeapsHelper &operator=(const BindlessHeapsHelper &) = delete;
GraphicsAllocation *getHeapAllocation(size_t heapSize, size_t alignment, bool allocInFrontWindow);
SurfaceStateInHeapInfo allocateSSInHeap(size_t ssSize, GraphicsAllocation *surfaceAllocation, BindlesHeapType heapType);
@@ -60,4 +63,4 @@ class BindlessHeapsHelper {
std::mutex mtx;
DeviceBitfield deviceBitfield;
};
} // namespace NEO
} // namespace NEO

View File

@@ -7,8 +7,10 @@
#pragma once
#include <bitset>
#include <cstdint>
#include <memory>
#include <vector>
namespace NEO {
struct EngineControl;
using EngineControlContainer = std::vector<EngineControl>;

View File

@@ -10,7 +10,7 @@
#include <cstdint>
namespace NEO {
typedef uint64_t FlushStamp;
using FlushStamp = uint64_t;
struct CompletionStamp {
uint32_t taskCount;
uint32_t taskLevel;

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
namespace NEO {
bool isDeferredDeleterEnabled();
} // namespace NEO

View File

@@ -7,6 +7,7 @@
#include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/device/device.h"
#include "shared/source/helpers/hw_helper.h"

View File

@@ -1,13 +1,12 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/aligned_memory.h"
#include <cstddef>
#include <cstdint>
namespace NEO {

View File

@@ -6,10 +6,14 @@
*/
#pragma once
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/memory_manager/allocation_type.h"
#include <cstdint>
namespace NEO {
enum class HeapIndex : uint32_t;
struct HardwareInfo;
struct HeapAssigner {
HeapAssigner();
~HeapAssigner() = default;
@@ -24,4 +28,4 @@ struct HeapAssigner {
static HeapIndex mapInternalWindowIndex(HeapIndex index);
bool apiAllowExternalHeapForSshAndDsh = false;
};
} // namespace NEO
} // namespace NEO

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2019-2020 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstddef>
#include <cstdint>

View File

@@ -5,6 +5,7 @@
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/bit_helpers.h"
#include "shared/source/helpers/memory_properties_helpers.h"

View File

@@ -8,16 +8,12 @@
#pragma once
#include "shared/source/command_stream/linear_stream.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/ptr_math.h"
#include "shared/source/indirect_heap/indirect_heap_type.h"
#include "shared/source/memory_manager/graphics_allocation.h"
namespace NEO {
class GraphicsAllocation;
using HeapContainer = std::vector<GraphicsAllocation *>;
constexpr size_t defaultHeapSize = 64 * KB;
@@ -30,7 +26,7 @@ inline size_t getDefaultHeapSize() {
}
class IndirectHeap : public LinearStream {
typedef LinearStream BaseClass;
using BaseClass = LinearStream;
public:
using Type = IndirectHeapType;

View File

@@ -13,7 +13,6 @@
#include "shared/source/kernel/debug_data.h"
#include "shared/source/kernel/kernel_arg_descriptor.h"
#include "shared/source/kernel/kernel_arg_metadata.h"
#include "shared/source/utilities/arrayref.h"
#include "shared/source/utilities/stackvec.h"
#include <array>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2020 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -13,6 +13,7 @@
#include <algorithm>
#include <bitset>
#include <iterator>
#include <limits>
namespace NEO {

View File

@@ -7,6 +7,7 @@
#pragma once
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/local_memory_access_modes.h"
#include "shared/source/unified_memory/usm_memory_support.h"
@@ -21,6 +22,7 @@ struct StateComputeModeProperties;
struct PipelineSelectArgs;
class OSInterface;
class HwInfoConfig;
class GraphicsAllocation;
enum class DriverModelType;
extern HwInfoConfig *hwInfoConfigFactory[IGFX_MAX_PRODUCT];

View File

@@ -7,6 +7,7 @@
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/api_specific_config.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/driver_model_type.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/preamble.h"

View File

@@ -7,6 +7,7 @@
#include "shared/source/os_interface/linux/drm_debug.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/string.h"
#include "shared/source/os_interface/linux/drm_neo.h"

View File

@@ -8,6 +8,7 @@
#pragma once
#include "shared/source/gmm_helper/gmm_lib.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/topology_map.h"
#include "shared/source/memory_manager/definitions/engine_limits.h"
#include "shared/source/os_interface/driver_info.h"

View File

@@ -7,12 +7,15 @@
#include "shared/source/os_interface/linux/ioctl_helper.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/ptr_math.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/linux/drm_wrappers.h"
#include "drm/i915_drm.h"
#include <sstream>
namespace NEO {
uint32_t IoctlHelper::ioctl(Drm *drm, unsigned long request, void *arg) {

View File

@@ -5,6 +5,8 @@
*
*/
#pragma once
#include <string>
namespace NEO {

View File

@@ -7,12 +7,15 @@
#include "shared/source/os_interface/linux/memory_info.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include <iostream>
namespace NEO {
MemoryInfo::MemoryInfo(const RegionContainer &regionInfo)

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_memory.h"
#include <fcntl.h>

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_thread.h"
#include <pthread.h>

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <map>
#include <poll.h>
#include <string>
@@ -21,4 +23,4 @@ class PmtUtil {
static ssize_t readTelem(std::string_view telemDir, const std::size_t size, const uint64_t offset, void *data);
};
} // namespace NEO
} // namespace NEO

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_memory.h"
#include <windows.h>

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_thread.h"
#include <thread>

View File

@@ -7,11 +7,12 @@
#include "shared/source/page_fault_manager/cpu_page_fault_manager.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/memory_properties_helpers.h"
#include "shared/source/memory_manager/unified_memory_manager.h"
#include "shared/source/utilities/spinlock.h"
#include <algorithm>
#include <mutex>
namespace NEO {
void PageFaultManager::insertAllocation(void *ptr, size_t size, SVMAllocsManager *unifiedMemoryManager, void *cmdQ, const MemoryProperties &memoryProperties) {

View File

@@ -11,14 +11,12 @@
#include "shared/source/program/heap_info.h"
#include "shared/source/utilities/arrayref.h"
#include "shared/source/utilities/const_stringref.h"
#include "shared/source/utilities/stackvec.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <map>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
namespace gtpin {

View File

@@ -11,10 +11,10 @@
#include "shared/source/helpers/constants.h"
#include "shared/source/os_interface/print.h"
#include <algorithm>
#include <cctype>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <unordered_map>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,6 +17,8 @@
#include "igfx_debug_interchange_types.h"
#include "lib_names.h"
#include <fstream>
#define IGFXDBG_CURRENT_VERSION 4
namespace NEO {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -8,7 +8,6 @@
#pragma once
#include <cstddef>
#include <type_traits>
#include <utility>
template <typename DataType>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,6 +7,9 @@
#include "shared/source/utilities/debug_file_reader.h"
#include <fstream>
#include <sstream>
namespace NEO {
SettingsFileReader::SettingsFileReader(const char *filePath) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -9,9 +9,9 @@
#include "shared/source/utilities/debug_settings_reader.h"
#include <cstdint>
#include <istream>
#include <map>
#include <sstream>
#include <stdint.h>
#include <string>
namespace NEO {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -9,6 +9,8 @@
#include "shared/source/utilities/debug_file_reader.h"
#include <fstream>
namespace NEO {
const char *SettingsReader::settingsFileName = "igdrcl.config";

View File

@@ -1,12 +1,11 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <fstream>
#include <stdint.h>
#include <string>
@@ -14,7 +13,7 @@ namespace NEO {
class SettingsReader {
public:
virtual ~SettingsReader() {}
virtual ~SettingsReader() = default;
static SettingsReader *create(const std::string &regKey) {
SettingsReader *readerImpl = createFileReader();
if (readerImpl != nullptr)

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,6 +10,7 @@
#include "shared/source/utilities/debug_settings_reader.h"
#include <memory>
#include <string>
namespace NEO {
class SettingsReaderCreator {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -11,7 +11,6 @@
#include <algorithm>
#include <cstdint>
#include <unordered_map>
#include <vector>
namespace NEO {

View File

@@ -15,6 +15,7 @@
#include <mutex>
#include <sstream>
#include <string>
#include <thread>
namespace NEO {
class Kernel;

View File

@@ -5,6 +5,8 @@
*
*/
#pragma once
#include "shared/source/helpers/debug_helpers.h"
#include <array>
@@ -26,4 +28,4 @@ struct LookupArray {
protected:
LookupMapArrayT lookupArray;
};
};

View File

@@ -10,6 +10,8 @@
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/file_io.h"
#include <sstream>
namespace NEO {
namespace SWTags {

View File

@@ -8,7 +8,7 @@
#pragma once
#include "shared/source/helpers/string.h"
#include <sstream>
#include <ostream>
#include <string>
namespace NEO {

View File

@@ -1,12 +1,11 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <type_traits>
namespace NEO {

View File

@@ -10,6 +10,8 @@
#include "device_ids_configs_pvc.h"
#include <algorithm>
namespace NEO {
struct PVC : public XE_HPC_COREFamily {

View File

@@ -10,6 +10,8 @@
#include "device_ids_configs_dg2.h"
#include <algorithm>
namespace NEO {
struct DG2 : public XE_HPG_COREFamily {