File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1372,7 +1372,7 @@ ur_result_t validateCommandDesc(
13721372 logger::debug (" Mutable features supported by device {}" , SupportedFeatures);
13731373
13741374 // Kernel handle updates are not yet supported.
1375- if (CommandDesc->hNewKernel != Command->Kernel ) {
1375+ if (CommandDesc->hNewKernel && CommandDesc-> hNewKernel != Command->Kernel ) {
13761376 return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
13771377 }
13781378
Original file line number Diff line number Diff line change @@ -547,7 +547,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferUpdateKernelLaunchExp(
547547 *pUpdateKernelLaunch) {
548548
549549 // Kernel handle updates are not yet supported.
550- if (pUpdateKernelLaunch->hNewKernel != hCommand->Kernel ) {
550+ if (pUpdateKernelLaunch->hNewKernel &&
551+ pUpdateKernelLaunch->hNewKernel != hCommand->Kernel ) {
551552 return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
552553 }
553554
You can’t perform that action at this time.
0 commit comments