| 461 | } |
| 462 | |
| 463 | bool get_wbsm_support_info(const cl::Device &device) |
| 464 | { |
| 465 | cl_bitfield capabilities = 0; |
| 466 | cl_int err = clGetDeviceInfo(device.get(), CL_DEVICE_SCHEDULING_CONTROLS_CAPABILITIES_ARM, sizeof(cl_bitfield), |
| 467 | &capabilities, nullptr); |
| 468 | if ((err == CL_SUCCESS) && (capabilities & CL_KERNEL_EXEC_INFO_WORKGROUP_BATCH_SIZE_MODIFIER_ARM)) |
| 469 | { |
| 470 | return true; |
| 471 | } |
| 472 | return false; |
| 473 | } |
| 474 | |
| 475 | void set_wbsm(cl::Kernel &kernel, cl_int wbsm_hint) |
| 476 | { |
no test coverage detected