fix: add missing member initializations

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2023-10-02 10:34:36 +00:00 committed by Compute-Runtime-Automation
parent b4733dedb7
commit 1963ea69e5
10 changed files with 20 additions and 20 deletions

View File

@ -391,7 +391,7 @@ struct CommandList : _ze_command_list_handle_t {
ze_command_list_flags_t flags = 0u; ze_command_list_flags_t flags = 0u;
NEO::PreemptionMode commandListPreemptionMode = NEO::PreemptionMode::Initial; NEO::PreemptionMode commandListPreemptionMode = NEO::PreemptionMode::Initial;
NEO::EngineGroupType engineGroupType; NEO::EngineGroupType engineGroupType = NEO::EngineGroupType::MaxEngineGroups;
NEO::HeapAddressModel cmdListHeapAddressModel = NEO::HeapAddressModel::PrivateHeaps; NEO::HeapAddressModel cmdListHeapAddressModel = NEO::HeapAddressModel::PrivateHeaps;
uint32_t cmdListType = CommandListType::TYPE_REGULAR; uint32_t cmdListType = CommandListType::TYPE_REGULAR;

View File

@ -58,7 +58,7 @@ struct CommandQueueImp : public CommandQueue {
} }
private: private:
NEO::GraphicsAllocation *buffers[BUFFER_ALLOCATION::COUNT]; NEO::GraphicsAllocation *buffers[BUFFER_ALLOCATION::COUNT]{};
std::pair<TaskCountType, NEO::FlushStamp> flushId[BUFFER_ALLOCATION::COUNT]; std::pair<TaskCountType, NEO::FlushStamp> flushId[BUFFER_ALLOCATION::COUNT];
BUFFER_ALLOCATION bufferUse = BUFFER_ALLOCATION::FIRST; BUFFER_ALLOCATION bufferUse = BUFFER_ALLOCATION::FIRST;
}; };

View File

@ -373,7 +373,7 @@ struct EventPool : _ze_event_pool_handle_t {
uint32_t eventPackets = 0; uint32_t eventPackets = 0;
uint32_t maxKernelCount = 0; uint32_t maxKernelCount = 0;
ze_event_pool_flags_t eventPoolFlags; ze_event_pool_flags_t eventPoolFlags{};
bool isDeviceEventPoolAllocation = false; bool isDeviceEventPoolAllocation = false;
bool isHostVisibleEventPoolAllocation = false; bool isHostVisibleEventPoolAllocation = false;

View File

@ -714,7 +714,7 @@ ze_result_t LinuxGlobalOperationsImp::scanProcessesState(std::vector<zes_process
// iterate through all elements of pidClientMap // iterate through all elements of pidClientMap
for (auto itr = pidClientMap.begin(); itr != pidClientMap.end(); ++itr) { for (auto itr = pidClientMap.begin(); itr != pidClientMap.end(); ++itr) {
zes_process_state_t process; zes_process_state_t process{};
process.processId = static_cast<uint32_t>(itr->first); process.processId = static_cast<uint32_t>(itr->first);
process.memSize = itr->second.deviceMemStructField.deviceMemorySize; process.memSize = itr->second.deviceMemStructField.deviceMemorySize;
process.sharedSize = itr->second.deviceMemStructField.deviceSharedMemorySize; process.sharedSize = itr->second.deviceMemStructField.deviceSharedMemorySize;

View File

@ -117,8 +117,8 @@ struct DebugSessionWindows : DebugSessionImp {
uint32_t size; uint32_t size;
}; };
uint64_t debugAreaVA; uint64_t debugAreaVA{};
NEO::DebugAreaHeader debugArea; NEO::DebugAreaHeader debugArea{};
std::atomic<uint64_t> stateSaveAreaVA{0}; std::atomic<uint64_t> stateSaveAreaVA{0};
std::atomic<size_t> stateSaveAreaSize{0}; std::atomic<size_t> stateSaveAreaSize{0};
bool stateSaveAreaCaptured = false; bool stateSaveAreaCaptured = false;

View File

@ -364,7 +364,7 @@ ze_result_t LinuxGlobalOperationsImp::scanProcessesState(std::vector<zes_process
for (const auto &clientId : clientIds) { for (const auto &clientId : clientIds) {
// realClientPidPath will be something like: clients/<clientId>/pid // realClientPidPath will be something like: clients/<clientId>/pid
std::string realClientPidPath = clientsDir + "/" + clientId + "/" + "pid"; std::string realClientPidPath = clientsDir + "/" + clientId + "/" + "pid";
uint64_t pid; uint64_t pid{};
result = pSysfsAccess->read(realClientPidPath, pid); result = pSysfsAccess->read(realClientPidPath, pid);
if (ZE_RESULT_SUCCESS != result) { if (ZE_RESULT_SUCCESS != result) {
@ -471,7 +471,7 @@ ze_result_t LinuxGlobalOperationsImp::scanProcessesState(std::vector<zes_process
// iterate through all elements of pidClientMap // iterate through all elements of pidClientMap
for (auto itr = pidClientMap.begin(); itr != pidClientMap.end(); ++itr) { for (auto itr = pidClientMap.begin(); itr != pidClientMap.end(); ++itr) {
zes_process_state_t process; zes_process_state_t process{};
process.processId = static_cast<uint32_t>(itr->first); process.processId = static_cast<uint32_t>(itr->first);
process.memSize = itr->second.deviceMemStructField.deviceMemorySize; process.memSize = itr->second.deviceMemStructField.deviceMemorySize;
process.sharedSize = itr->second.deviceMemStructField.deviceSharedMemorySize; process.sharedSize = itr->second.deviceMemStructField.deviceSharedMemorySize;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2018-2021 Intel Corporation * Copyright (C) 2018-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -19,7 +19,7 @@ static jmp_buf jmpbuf;
class SafetyGuardLinux { class SafetyGuardLinux {
public: public:
SafetyGuardLinux() { SafetyGuardLinux() {
struct sigaction sigact; struct sigaction sigact {};
sigact.sa_sigaction = sigAction; sigact.sa_sigaction = sigAction;
sigact.sa_flags = SA_RESTART | SA_SIGINFO; sigact.sa_flags = SA_RESTART | SA_SIGINFO;
@ -72,6 +72,6 @@ class SafetyGuardLinux {
typedef void (*callbackFunction)(); typedef void (*callbackFunction)();
callbackFunction onSigSegv = nullptr; callbackFunction onSigSegv = nullptr;
struct sigaction previousSigSegvAction = {}; struct sigaction previousSigSegvAction {};
struct sigaction previousSigIllvAction = {}; struct sigaction previousSigIllvAction {};
}; };

View File

@ -154,16 +154,16 @@ class CompilerInterface {
using fclDevCtxUptr = CIF::RAII::UPtr_t<IGC::FclOclDeviceCtxTagOCL>; using fclDevCtxUptr = CIF::RAII::UPtr_t<IGC::FclOclDeviceCtxTagOCL>;
std::unique_ptr<OsLibrary> igcLib; std::unique_ptr<OsLibrary> igcLib;
CIF::RAII::UPtr_t<CIF::CIFMain> igcMain = nullptr; CIF::RAII::UPtr_t<CIF::CIFMain> igcMain;
std::map<const Device *, igcDevCtxUptr> igcDeviceContexts; std::map<const Device *, igcDevCtxUptr> igcDeviceContexts;
std::string igcRevision; std::string igcRevision;
size_t igcLibSize; size_t igcLibSize{};
time_t igcLibMTime; time_t igcLibMTime{};
std::unique_ptr<OsLibrary> fclLib; std::unique_ptr<OsLibrary> fclLib;
CIF::RAII::UPtr_t<CIF::CIFMain> fclMain = nullptr; CIF::RAII::UPtr_t<CIF::CIFMain> fclMain;
std::map<const Device *, fclDevCtxUptr> fclDeviceContexts; std::map<const Device *, fclDevCtxUptr> fclDeviceContexts;
CIF::RAII::UPtr_t<IGC::FclOclTranslationCtxTagOCL> fclBaseTranslationCtx = nullptr; CIF::RAII::UPtr_t<IGC::FclOclTranslationCtxTagOCL> fclBaseTranslationCtx;
MOCKABLE_VIRTUAL IGC::FclOclDeviceCtxTagOCL *getFclDeviceCtx(const Device &device); MOCKABLE_VIRTUAL IGC::FclOclDeviceCtxTagOCL *getFclDeviceCtx(const Device &device);
MOCKABLE_VIRTUAL IGC::IgcOclDeviceCtxTagOCL *getIgcDeviceCtx(const Device &device); MOCKABLE_VIRTUAL IGC::IgcOclDeviceCtxTagOCL *getIgcDeviceCtx(const Device &device);

View File

@ -213,7 +213,7 @@ class Device : public ReferenceTrackedObject<Device> {
EngineGroupsT regularEngineGroups; EngineGroupsT regularEngineGroups;
std::vector<SubDevice *> subdevices; std::vector<SubDevice *> subdevices;
PreemptionMode preemptionMode; PreemptionMode preemptionMode = PreemptionMode::Disabled;
ExecutionEnvironment *executionEnvironment = nullptr; ExecutionEnvironment *executionEnvironment = nullptr;
aub_stream::EngineType engineInstancedType = aub_stream::EngineType::NUM_ENGINES; aub_stream::EngineType engineInstancedType = aub_stream::EngineType::NUM_ENGINES;
uint32_t defaultEngineIndex = 0; uint32_t defaultEngineIndex = 0;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021-2022 Intel Corporation * Copyright (C) 2021-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -48,7 +48,7 @@ class SWTagsManager {
void allocateBXMLHeap(Device &device); void allocateBXMLHeap(Device &device);
void allocateSWTagHeap(Device &device); void allocateSWTagHeap(Device &device);
MemoryManager *memoryManager; MemoryManager *memoryManager{};
GraphicsAllocation *tagHeap = nullptr; GraphicsAllocation *tagHeap = nullptr;
GraphicsAllocation *bxmlHeap = nullptr; GraphicsAllocation *bxmlHeap = nullptr;
unsigned int currentHeapOffset = 0; unsigned int currentHeapOffset = 0;