Correct spelling mistakes

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak
2022-10-20 14:42:46 +00:00
committed by Compute-Runtime-Automation
parent 3384b2fed0
commit b1731626d0
5 changed files with 5 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ uint32_t resolveExtFuncDependencies(ExternalFunctionInfosT externalFunctionInfos
DependencyResolver depResolver(dependencies); DependencyResolver depResolver(dependencies);
auto resolved = depResolver.resolveDependencies(); auto resolved = depResolver.resolveDependencies();
if (depResolver.hasLoop()) { if (depResolver.hasLoop()) {
return ERROR_LOOP_DETECKTED; return ERROR_LOOP_DETECTED;
} }
for (auto calleeId : resolved) { for (auto calleeId : resolved) {
const auto callee = externalFunctionInfos[calleeId]; const auto callee = externalFunctionInfos[calleeId];

View File

@@ -20,7 +20,7 @@ enum ExternalFunctionResolveError : uint32_t {
RESOLVE_SUCCESS = 0, RESOLVE_SUCCESS = 0,
ERROR_EXTERNAL_FUNCTION_INFO_MISSING, ERROR_EXTERNAL_FUNCTION_INFO_MISSING,
ERROR_KERNEL_DESCRIPTOR_MISSING, ERROR_KERNEL_DESCRIPTOR_MISSING,
ERROR_LOOP_DETECKTED ERROR_LOOP_DETECTED
}; };
struct ExternalFunctionInfo { struct ExternalFunctionInfo {

View File

@@ -1650,7 +1650,7 @@ NEO::DecodeError decodeAndPopulateKernelMiscInfo(ProgramInfo &dst, ConstStringRe
} }
} }
if (nullptr == kernelInfo) { if (nullptr == kernelInfo) {
outErrReason.append("DeviceBinaryFormat::Zebin : Error : Cannot found kernel info for kernel " + kName + ".\n"); outErrReason.append("DeviceBinaryFormat::Zebin : Error : Cannot find kernel info for kernel " + kName + ".\n");
return DecodeError::InvalidBinary; return DecodeError::InvalidBinary;
} }
populateKernelMiscInfo(kernelInfo->kernelDescriptor, miscInfos, outErrReason, outWarning); populateKernelMiscInfo(kernelInfo->kernelDescriptor, miscInfos, outErrReason, outWarning);

View File

@@ -144,7 +144,7 @@ TEST_F(ExternalFunctionsTests, GivenLoopWhenResolvingExtFuncDependenciesThenRetu
addFuncDependency("fun1", "fun0"); addFuncDependency("fun1", "fun0");
set(); set();
auto error = resolveExtFuncDependencies(extFuncInfo, funcNameToId, functionDependencies); auto error = resolveExtFuncDependencies(extFuncInfo, funcNameToId, functionDependencies);
EXPECT_EQ(ERROR_LOOP_DETECKTED, error); EXPECT_EQ(ERROR_LOOP_DETECTED, error);
} }
TEST_F(ExternalFunctionsTests, GivenMissingExtFuncInLookupMapWhenResolvingKernelDependenciesThenReturnError) { TEST_F(ExternalFunctionsTests, GivenMissingExtFuncInLookupMapWhenResolvingKernelDependenciesThenReturnError) {

View File

@@ -851,7 +851,7 @@ kernels_misc_info:
auto res = decodeAndPopulateKernelMiscInfo(programInfo, kernelMiscInfo, outErrors, outWarnings); auto res = decodeAndPopulateKernelMiscInfo(programInfo, kernelMiscInfo, outErrors, outWarnings);
EXPECT_EQ(DecodeError::InvalidBinary, res); EXPECT_EQ(DecodeError::InvalidBinary, res);
auto expectedError{"DeviceBinaryFormat::Zebin : Error : Cannot found kernel info for kernel some_kernel.\n"}; auto expectedError{"DeviceBinaryFormat::Zebin : Error : Cannot find kernel info for kernel some_kernel.\n"};
EXPECT_STREQ(outErrors.c_str(), expectedError); EXPECT_STREQ(outErrors.c_str(), expectedError);
} }