SWDEV-329516 - Don't clear error if setKernels returns false.
Change-Id: I75f69bcdf01bad63a9273dc37afd69644f6b3b22
이 커밋은 다음에 포함됨:
@@ -1753,12 +1753,13 @@ bool Program::trySubstObjFile(const char *SubstCfgFile,
|
||||
buildError_ = CL_BUILD_PROGRAM_FAILURE;
|
||||
str << "Subst failure: cannot read binary file " << substRes.first << '\n';
|
||||
} else {
|
||||
setKernels(binary, binSize);
|
||||
buildStatus_ = CL_BUILD_SUCCESS;
|
||||
buildError_ = 0;
|
||||
str << "Substituted program hash 0x"
|
||||
<< std::setbase(16) << substRes.second
|
||||
<< " with " << substRes.first << '\n';
|
||||
if (setKernels(binary, binSize)) {
|
||||
buildStatus_ = CL_BUILD_SUCCESS;
|
||||
buildError_ = 0;
|
||||
str << "Substituted program hash 0x"
|
||||
<< std::setbase(16) << substRes.second
|
||||
<< " with " << substRes.first << '\n';
|
||||
}
|
||||
}
|
||||
buildLog_ += str.str();
|
||||
return true;
|
||||
|
||||
새 이슈에서 참조
사용자 차단