Skip to content

Commit 7584a9b

Browse files
committed
Add clarifying comment
1 parent d2598de commit 7584a9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/adapters/opencl/device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
938938
return UR_RESULT_SUCCESS;
939939
}
940940
case UR_DEVICE_INFO_SUB_GROUP_SIZES_INTEL: {
941+
/* CL_DEVICE_SUB_GROUP_SIZES_INTEL is only supported if the device has the
942+
* cl_intel_required_subgroup_size extension, if it does not have it we
943+
* return a default subgroups sizes list of {1}
944+
* */
941945
size_t ExtSize = 0;
942946
urDeviceGetInfo(hDevice, UR_DEVICE_INFO_EXTENSIONS, 0, nullptr, &ExtSize);
943947
std::string ExtStr(ExtSize, 0);

0 commit comments

Comments
 (0)