mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Program refactor
* Decouple binary program handling from Program object * Add binary formats multiplexer * Improve Elf format support Change-Id: Ic22aff40173532e14825d70b82ec53fcc5fa9fdf
This commit is contained in:
@@ -18,4 +18,24 @@ ProgramInfo::~ProgramInfo() {
|
||||
kernelInfos.clear();
|
||||
}
|
||||
|
||||
size_t getMaxInlineSlmNeeded(const ProgramInfo &programInfo) {
|
||||
uint32_t ret = 0U;
|
||||
for (const auto &kernelInfo : programInfo.kernelInfos) {
|
||||
if (nullptr == kernelInfo->patchInfo.localsurface) {
|
||||
continue;
|
||||
}
|
||||
ret = std::max(ret, kernelInfo->patchInfo.localsurface->TotalInlineLocalMemorySize);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool requiresLocalMemoryWindowVA(const ProgramInfo &programInfo) {
|
||||
for (const auto &kernelInfo : programInfo.kernelInfos) {
|
||||
if (WorkloadInfo::undefinedOffset != kernelInfo->workloadInfo.localMemoryStatelessWindowStartAddressOffset) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user