Skip to content

Commit

Permalink
[NATIVECPU] Add UR_DEVICE_INFO_MAX_WORK_GROUP_SIZE for device info
Browse files Browse the repository at this point in the history
  • Loading branch information
coldav committed Sep 11, 2024
1 parent 24a8299 commit b3ebaaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/adapters/native_cpu/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_MAX_WORK_GROUP_SIZE:
// TODO: provide a mechanism to estimate/configure this.
return ReturnValue(size_t{2048});
case UR_DEVICE_INFO_MAX_NUM_SUB_GROUPS:
// Set the max sub groups to be the same as the max work group size.
return ReturnValue(uint32_t{2048});
case UR_DEVICE_INFO_MEM_BASE_ADDR_ALIGN:
// Imported from level_zero
return ReturnValue(uint32_t{8});
Expand Down

0 comments on commit b3ebaaf

Please sign in to comment.