File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
unified-runtime/source/adapters/cuda Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
476476 }
477477
478478 while (_launchPropList != nullptr ) {
479+ // In case of the ur_kernel_launch_ext_properties_t type
480+ // the properties are stored in the 'flags' field
481+ // so we have already counted them above.
479482 if (_launchPropList->stype !=
480483 as_stype<ur_kernel_launch_ext_properties_t >()) {
481484 numPropsInLaunchPropList++;
@@ -486,7 +489,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
486489 reinterpret_cast <ur_kernel_launch_workgroup_property_t *>(
487490 _launchPropList);
488491 WorkGroupMemory = WorkGroupMemoryProp->workgroup_mem_size ;
489- break ;
490492 }
491493 _launchPropList = static_cast <ur_kernel_launch_ext_properties_t *>(
492494 _launchPropList->pNext );
You can’t perform that action at this time.
0 commit comments