mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: add missing member initializations
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b4733dedb7
commit
1963ea69e5
@@ -391,7 +391,7 @@ struct CommandList : _ze_command_list_handle_t {
|
||||
|
||||
ze_command_list_flags_t flags = 0u;
|
||||
NEO::PreemptionMode commandListPreemptionMode = NEO::PreemptionMode::Initial;
|
||||
NEO::EngineGroupType engineGroupType;
|
||||
NEO::EngineGroupType engineGroupType = NEO::EngineGroupType::MaxEngineGroups;
|
||||
NEO::HeapAddressModel cmdListHeapAddressModel = NEO::HeapAddressModel::PrivateHeaps;
|
||||
|
||||
uint32_t cmdListType = CommandListType::TYPE_REGULAR;
|
||||
|
||||
@@ -58,7 +58,7 @@ struct CommandQueueImp : public CommandQueue {
|
||||
}
|
||||
|
||||
private:
|
||||
NEO::GraphicsAllocation *buffers[BUFFER_ALLOCATION::COUNT];
|
||||
NEO::GraphicsAllocation *buffers[BUFFER_ALLOCATION::COUNT]{};
|
||||
std::pair<TaskCountType, NEO::FlushStamp> flushId[BUFFER_ALLOCATION::COUNT];
|
||||
BUFFER_ALLOCATION bufferUse = BUFFER_ALLOCATION::FIRST;
|
||||
};
|
||||
|
||||
@@ -373,7 +373,7 @@ struct EventPool : _ze_event_pool_handle_t {
|
||||
uint32_t eventPackets = 0;
|
||||
uint32_t maxKernelCount = 0;
|
||||
|
||||
ze_event_pool_flags_t eventPoolFlags;
|
||||
ze_event_pool_flags_t eventPoolFlags{};
|
||||
|
||||
bool isDeviceEventPoolAllocation = false;
|
||||
bool isHostVisibleEventPoolAllocation = false;
|
||||
|
||||
@@ -714,7 +714,7 @@ ze_result_t LinuxGlobalOperationsImp::scanProcessesState(std::vector<zes_process
|
||||
|
||||
// iterate through all elements of pidClientMap
|
||||
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.memSize = itr->second.deviceMemStructField.deviceMemorySize;
|
||||
process.sharedSize = itr->second.deviceMemStructField.deviceSharedMemorySize;
|
||||
|
||||
@@ -117,8 +117,8 @@ struct DebugSessionWindows : DebugSessionImp {
|
||||
uint32_t size;
|
||||
};
|
||||
|
||||
uint64_t debugAreaVA;
|
||||
NEO::DebugAreaHeader debugArea;
|
||||
uint64_t debugAreaVA{};
|
||||
NEO::DebugAreaHeader debugArea{};
|
||||
std::atomic<uint64_t> stateSaveAreaVA{0};
|
||||
std::atomic<size_t> stateSaveAreaSize{0};
|
||||
bool stateSaveAreaCaptured = false;
|
||||
|
||||
@@ -364,7 +364,7 @@ ze_result_t LinuxGlobalOperationsImp::scanProcessesState(std::vector<zes_process
|
||||
for (const auto &clientId : clientIds) {
|
||||
// realClientPidPath will be something like: clients/<clientId>/pid
|
||||
std::string realClientPidPath = clientsDir + "/" + clientId + "/" + "pid";
|
||||
uint64_t pid;
|
||||
uint64_t pid{};
|
||||
result = pSysfsAccess->read(realClientPidPath, pid);
|
||||
|
||||
if (ZE_RESULT_SUCCESS != result) {
|
||||
@@ -471,7 +471,7 @@ ze_result_t LinuxGlobalOperationsImp::scanProcessesState(std::vector<zes_process
|
||||
|
||||
// iterate through all elements of pidClientMap
|
||||
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.memSize = itr->second.deviceMemStructField.deviceMemorySize;
|
||||
process.sharedSize = itr->second.deviceMemStructField.deviceSharedMemorySize;
|
||||
|
||||
Reference in New Issue
Block a user