mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Cleanup includes 19
Cleaned up files: opencl/source/api/cl_types.h shared/source/compiler_interface/external_functions.h shared/source/compiler_interface/linker.h shared/source/device_binary_format/elf/elf.h shared/source/helpers/preamble.h shared/source/memory_manager/definitions/storage_info.h shared/source/memory_manager/memory_manager.h shared/source/memory_manager/os_agnostic_memory_manager.h shared/source/program/program_info.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0770ea765f
commit
0eac749fcc
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/helpers/app_resource_helper.h"
|
||||
#include "shared/source/helpers/basic_math.h"
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/memory_manager/allocation_properties.h"
|
||||
#include "shared/source/memory_manager/local_memory_usage.h"
|
||||
@@ -206,4 +207,8 @@ uint32_t StorageInfo::getNumBanks() const {
|
||||
}
|
||||
return static_cast<uint32_t>(memoryBanks.count());
|
||||
}
|
||||
|
||||
uint32_t StorageInfo::getTotalBanksCnt() const {
|
||||
return Math::log2(getMemoryBanks()) + 1;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/app_resource_defines.h"
|
||||
#include "shared/source/helpers/basic_math.h"
|
||||
#include "shared/source/helpers/common_types.h"
|
||||
#include "shared/source/helpers/constants.h"
|
||||
|
||||
@@ -34,6 +33,6 @@ struct StorageInfo {
|
||||
bool systemMemoryPlacement = true;
|
||||
char resourceTag[AppResourceDefines::maxStrLen + 1] = "";
|
||||
uint32_t getMemoryBanks() const { return static_cast<uint32_t>(memoryBanks.to_ulong()); }
|
||||
uint32_t getTotalBanksCnt() const { return Math::log2(getMemoryBanks()) + 1; }
|
||||
uint32_t getTotalBanksCnt() const;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user