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

Function get_cl_image_pitch_alignment

src/core/CL/CLHelpers.cpp:416–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416size_t get_cl_image_pitch_alignment(const cl::Device &device)
417{
418 cl_uint pixel_aligment = 0;
419
420 cl_int err = clGetDeviceInfo(device(), CL_DEVICE_IMAGE_PITCH_ALIGNMENT, sizeof(cl_uint), &pixel_aligment, nullptr);
421
422 if (err == CL_SUCCESS)
423 {
424 return pixel_aligment;
425 }
426 else
427 {
428 return 0;
429 }
430}
431
432bool get_cl_non_uniform_work_group_supported(const cl::Device &device)
433{

Callers 8

export_to_cl_imageFunction · 0.85
configure_targetMethod · 0.85
configure_targetMethod · 0.85

Calls 1

clGetDeviceInfoFunction · 0.85

Tested by

no test coverage detected