mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
fix: return the appropriate KernelInfo when calling the getKernelInfo
The indexes of all returned kernelInfo values greater than or equal to exportedFunctionsKernelId should be incremented by one Related-To: NEO-7820 Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e351a90f81
commit
7230120060
@@ -67,7 +67,7 @@ size_t Program::getNumKernels() const {
|
||||
|
||||
const KernelInfo *Program::getKernelInfo(size_t ordinal, uint32_t rootDeviceIndex) const {
|
||||
auto &kernelInfoArray = buildInfos[rootDeviceIndex].kernelInfoArray;
|
||||
if (exportedFunctionsKernelId == ordinal) {
|
||||
if (exportedFunctionsKernelId <= ordinal) {
|
||||
ordinal++;
|
||||
}
|
||||
DEBUG_BREAK_IF(ordinal >= kernelInfoArray.size());
|
||||
|
||||
Reference in New Issue
Block a user