File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
unified-runtime/source/adapters/level_zero/v2 Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,19 @@ ur_result_t urQueueCreateWithNativeHandle(
109
109
}
110
110
}
111
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
+
112
125
auto commandListHandle = v2::raii::command_list_unique_handle (
113
126
reinterpret_cast <ze_command_list_handle_t >(hNativeQueue),
114
127
[ownNativeHandle](ze_command_list_handle_t hZeCommandList) {
You can’t perform that action at this time.
0 commit comments