fix(ocl): Force rebuild if binary contains bindless kernel

Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwoliński
2024-05-17 13:28:41 +00:00
committed by Compute-Runtime-Automation
parent 90927135f9
commit 59829aeb11
7 changed files with 133 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2023 Intel Corporation
* Copyright (C) 2022-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -55,4 +55,13 @@ bool containsStatefulAccess(const std::vector<KernelInfo *> &kernelInfos, bool s
return false;
}
bool containsBindlessKernel(const std::vector<KernelInfo *> &kernelInfos) {
for (const auto &kernelInfo : kernelInfos) {
if (NEO::KernelDescriptor::isBindlessAddressingKernel(kernelInfo->kernelDescriptor)) {
return true;
}
}
return false;
}
} // namespace NEO::AddressingModeHelper