MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / get_wbsm_support_info

Function get_wbsm_support_info

src/core/CL/CLHelpers.cpp:463–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463bool 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
475void set_wbsm(cl::Kernel &kernel, cl_int wbsm_hint)
476{

Callers 2

CLCompileContextMethod · 0.85
set_deviceMethod · 0.85

Calls 2

clGetDeviceInfoFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected