Skip to content

Commit 640bd26

Browse files
committed
Index into property array in urDevicePartition for OpenCL.
1 parent e6e300a commit 640bd26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/adapters/opencl/device.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,17 +1143,17 @@ UR_APIEXPORT ur_result_t UR_APICALL urDevicePartition(
11431143
switch (pProperties->pProperties->type) {
11441144
case UR_DEVICE_PARTITION_EQUALLY: {
11451145
CLProperty = static_cast<cl_device_partition_property>(
1146-
pProperties->pProperties->value.equally);
1146+
pProperties->pProperties[i].value.equally);
11471147
break;
11481148
}
11491149
case UR_DEVICE_PARTITION_BY_COUNTS: {
11501150
CLProperty = static_cast<cl_device_partition_property>(
1151-
pProperties->pProperties->value.count);
1151+
pProperties->pProperties[i].value.count);
11521152
break;
11531153
}
11541154
case UR_DEVICE_PARTITION_BY_AFFINITY_DOMAIN: {
11551155
CLProperty = static_cast<cl_device_partition_property>(
1156-
pProperties->pProperties->value.affinity_domain);
1156+
pProperties->pProperties[i].value.affinity_domain);
11571157
break;
11581158
}
11591159
default: {

0 commit comments

Comments
 (0)