Skip to content

Commit b7ffbc7

Browse files
author
Jaime Arteaga
authored
[SYCL][UR][L0] Do not destroy build log on piProgramBuild (#9980)
If piProgramBuild fails, do not remove L0 build log, which is expected to be read later in piProgramGetBuildInfo. Signed-off-by: Jaime Arteaga <[email protected]>
1 parent abfdb63 commit b7ffbc7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_program.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramBuild(
154154
// RT calls piProgramRelease().
155155
Program->State = ur_program_handle_t_::Invalid;
156156
Result = ze2urResult(ZeResult);
157-
if (Program->ZeBuildLog) {
158-
ZE_CALL_NOCHECK(zeModuleBuildLogDestroy, (Program->ZeBuildLog));
159-
Program->ZeBuildLog = nullptr;
160-
}
161157
if (ZeModule) {
162158
ZE_CALL_NOCHECK(zeModuleDestroy, (ZeModule));
163159
ZeModule = nullptr;

0 commit comments

Comments
 (0)