File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
unified-runtime/source/adapters/level_zero/v2 Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,12 @@ ur_integrated_buffer_handle_t::ur_integrated_buffer_handle_t(
109109 ur_context_handle_t hContext, void *hostPtr, size_t size,
110110 device_access_mode_t accessMode, bool ownHostPtr)
111111 : ur_mem_buffer_t (hContext, size, accessMode) {
112- this ->ptr =
113- usm_unique_ptr_t (hostPtr, [hContext, ownHostPtr](void *ptr) {
114- if (!ownHostPtr || !checkL0LoaderTeardown ()) {
115- return ;
116- }
117- ZE_CALL_NOCHECK (zeMemFree, (hContext->getZeHandle (), ptr));
118- });
112+ this ->ptr = usm_unique_ptr_t (hostPtr, [hContext, ownHostPtr](void *ptr) {
113+ if (!ownHostPtr || !checkL0LoaderTeardown ()) {
114+ return ;
115+ }
116+ ZE_CALL_NOCHECK (zeMemFree, (hContext->getZeHandle (), ptr));
117+ });
119118}
120119
121120void *ur_integrated_buffer_handle_t ::getDevicePtr(
You can’t perform that action at this time.
0 commit comments