We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c01b093 commit 1eaedceCopy full SHA for 1eaedce
1 file changed
unified-runtime/source/adapters/level_zero/v2/queue_create.cpp
@@ -109,6 +109,19 @@ ur_result_t urQueueCreateWithNativeHandle(
109
}
110
111
112
+ ze_bool_t isImmediate = false;
113
+ ZE2UR_CALL(
114
+ zeCommandListIsImmediate,
115
+ (reinterpret_cast<ze_command_list_handle_t>(hNativeQueue), &isImmediate));
116
+
117
+ if (!isImmediate) {
118
+ UR_LOG(ERR, "urQueueCreateWithNativeHandle: "
119
+ "Native handle is not an immediate command "
120
+ "list; only immediate command lists are "
121
+ "supported.");
122
+ return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
123
+ }
124
125
auto commandListHandle = v2::raii::command_list_unique_handle(
126
reinterpret_cast<ze_command_list_handle_t>(hNativeQueue),
127
[ownNativeHandle](ze_command_list_handle_t hZeCommandList) {
0 commit comments