Skip to content

Commit 107a00b

Browse files
committed
Fixes after review
1 parent a512bd9 commit 107a00b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unified-runtime/source/adapters/cuda/enqueue.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)