Skip to content

Commit ddae783

Browse files
committed
Remove remaining use of isInteropHandle
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 78cf7a9 commit ddae783

File tree

12 files changed

+0
-15
lines changed

12 files changed

+0
-15
lines changed

unified-runtime/source/adapters/level_zero/common.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ struct _ur_object {
280280
// Indicates if we own the native handle or it came from interop that
281281
// asked to not transfer the ownership to SYCL RT.
282282
bool OwnNativeHandle = false;
283-
284-
// Indicates if this object is an interop handle.
285-
bool IsInteropNativeHandle = false;
286283
};
287284

288285
// Record for a memory allocation. This structure is used to keep information

unified-runtime/source/adapters/level_zero/context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ ur_result_t urContextCreateWithNativeHandle(
152152
ur_context_handle_t_ *UrContext = new ur_context_handle_t_(
153153
ZeContext, NumDevices, Devices, OwnNativeHandle);
154154
UrContext->initialize();
155-
UrContext->IsInteropNativeHandle = true;
156155
*Context = reinterpret_cast<ur_context_handle_t>(UrContext);
157156
} catch (const std::bad_alloc &) {
158157
return UR_RESULT_ERROR_OUT_OF_HOST_MEMORY;

unified-runtime/source/adapters/level_zero/device.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,6 @@ ur_result_t urDeviceCreateWithNativeHandle(
15361536
if (Dev == nullptr)
15371537
return UR_RESULT_ERROR_INVALID_VALUE;
15381538

1539-
Dev->IsInteropNativeHandle = true;
15401539
*Device = Dev;
15411540
return UR_RESULT_SUCCESS;
15421541
}

unified-runtime/source/adapters/level_zero/event.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,6 @@ ur_result_t urEventCreateWithNativeHandle(
10011001
UREvent->CleanedUp = true;
10021002

10031003
*Event = reinterpret_cast<ur_event_handle_t>(UREvent);
1004-
UREvent->IsInteropNativeHandle = true;
10051004

10061005
return UR_RESULT_SUCCESS;
10071006
}

unified-runtime/source/adapters/level_zero/kernel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,6 @@ ur_result_t urKernelCreateWithNativeHandle(
11601160
}
11611161

11621162
Kernel->Program = Program;
1163-
Kernel->IsInteropNativeHandle = true;
11641163

11651164
UR_CALL(Kernel->initialize());
11661165

unified-runtime/source/adapters/level_zero/memory.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,6 @@ ur_result_t urMemImageCreateWithNativeHandle(
15631563
auto OwnNativeHandle = Properties ? Properties->isNativeHandleOwned : false;
15641564
UR_CALL(createUrMemFromZeImage(Context, ZeHImage, OwnNativeHandle,
15651565
ZeImageDesc, Mem));
1566-
(*Mem)->IsInteropNativeHandle = true;
15671566

15681567
return UR_RESULT_SUCCESS;
15691568
}
@@ -1779,7 +1778,6 @@ ur_result_t urMemBufferCreateWithNativeHandle(
17791778
Buffer = new _ur_buffer(Context, Size, Device, ur_cast<char *>(NativeMem),
17801779
OwnNativeHandle);
17811780
*Mem = reinterpret_cast<ur_mem_handle_t>(Buffer);
1782-
(*Mem)->IsInteropNativeHandle = true;
17831781
} catch (const std::bad_alloc &) {
17841782
return UR_RESULT_ERROR_OUT_OF_HOST_MEMORY;
17851783
} catch (...) {

unified-runtime/source/adapters/level_zero/program.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,6 @@ ur_result_t urProgramCreateWithNativeHandle(
966966
ur_program_handle_t_::Exe, Context, ZeModule,
967967
Properties ? Properties->isNativeHandleOwned : false);
968968
*Program = reinterpret_cast<ur_program_handle_t>(UrProgram);
969-
(*Program)->IsInteropNativeHandle = true;
970969
} catch (const std::bad_alloc &) {
971970
return UR_RESULT_ERROR_OUT_OF_HOST_MEMORY;
972971
} catch (...) {

unified-runtime/source/adapters/level_zero/queue.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ ur_result_t urQueueCreateWithNativeHandle(
805805
ur_queue_handle_t_ *Queue = new ur_queue_handle_t_(
806806
ComputeQueues, CopyQueues, Context, UrDevice, OwnNativeHandle, Flags);
807807
*RetQueue = reinterpret_cast<ur_queue_handle_t>(Queue);
808-
(*RetQueue)->IsInteropNativeHandle = true;
809808
} catch (const std::bad_alloc &) {
810809
return UR_RESULT_ERROR_OUT_OF_RESOURCES;
811810
} catch (...) {

unified-runtime/source/adapters/level_zero/v2/common.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ struct ze_handle_wrapper {
106106
private:
107107
ZeHandleT handle;
108108
bool ownZeHandle;
109-
bool IsInteropNativeHandle = false;
110109
};
111110

112111
using ze_kernel_handle_t = HANDLE_WRAPPER_TYPE(::ze_kernel_handle_t,

unified-runtime/source/adapters/level_zero/v2/context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ ur_result_t urContextCreateWithNativeHandle(
152152

153153
*phContext =
154154
new ur_context_handle_t_(zeContext, numDevices, phDevices, ownZeHandle);
155-
(*phContext)->IsInteropNativeHandle = true;
156155
return UR_RESULT_SUCCESS;
157156
} catch (...) {
158157
return exceptionToResult(std::current_exception());

0 commit comments

Comments
 (0)