We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a31f34 commit 5a10a41Copy full SHA for 5a10a41
source/loader/layers/sanitizer/asan/asan_ddi.cpp
@@ -434,7 +434,9 @@ ur_result_t UR_APICALL urProgramRelease(
434
auto ProgramInfo = getAsanInterceptor()->getProgramInfo(hProgram);
435
UR_ASSERT(ProgramInfo != nullptr, UR_RESULT_ERROR_INVALID_VALUE);
436
if (--ProgramInfo->RefCount == 0) {
437
- UR_CALL(getAsanInterceptor()->unregisterProgram(hProgram));
+ if (ProgramInfo->IsBuildSuccessful) {
438
+ UR_CALL(getAsanInterceptor()->unregisterProgram(hProgram));
439
+ }
440
UR_CALL(getAsanInterceptor()->eraseProgram(hProgram));
441
}
442
0 commit comments