Skip to content

Commit b3b8073

Browse files
authored
[UR] Fix urinfo to correctly release Adapters before loader teardown (#19154)
- Fix to urinfo to properly call release of adapters otherwise crucial teardown calls for adapters are missing. This was causing issues in UR only builds with adapters like L0 which have cleanup calls in the Adapter Release. Signed-off-by: Neil R. Spruit <[email protected]>
1 parent a0062cf commit b3b8073

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unified-runtime/tools/urinfo/urinfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ devices which are currently visible in the local execution environment.
208208

209209
~app() {
210210
urLoaderConfigRelease(loaderConfig);
211+
for (auto adapter : adapters) {
212+
urAdapterRelease(adapter);
213+
}
211214
urLoaderTearDown();
212215
}
213216
};

0 commit comments

Comments
 (0)