Content-Length: 268983 | pFad | http://github.com/opencv/opencv/issues/27507

85 opencv_perf_video meet implicit declaration of function 'sub_group_reduce_add' is invalid in OpenCL error · Issue #27507 · opencv/opencv · GitHub
Skip to content

opencv_perf_video meet implicit declaration of function 'sub_group_reduce_add' is invalid in OpenCL error #27507

@Lurie97

Description

@Lurie97

System Information

opencv version: 4.12.0/4.11.0
OpenCL Platforms: ARM Platform iGPU: Mali-G310 r0p0 (OpenCL 3.0 r54p0-00eac0.2943b3d.5a0b067f3ac2aab212d28d020935a256) Current OpenCL device: Type = iGPU Name = Mali-G310 r0p0

Detailed description

for opencv 4.12.0 version,
when run opencv_perf_video --gtest_filter=OCL_DenseOpticalFlow_DIS_perf.perf/0, will meet following error:
`:189:12: error: implicit declaration of function 'sub_group_reduce_add' is invalid in OpenCL
sum_diff = sub_group_reduce_add(sum_diff);
^

:229:11: error: implicit declaration of function 'get_sub_group_local_id' is invalid in OpenCL int sid = get_sub_group_local_id();`

[----------] 1 test from OCL_DenseOpticalFlow_DIS_perf [ RUN ] OCL_DenseOpticalFlow_DIS_perf.perf/0, where GetParam() = ("PRESET_ULTRAFAST", 640x480) [ WARN:0@0.060] global filesystem.cpp:489 getCacheDirectory Using world accessible cache directory. This may be not secure: /var/tmp/ OpenCL program build log: video/dis_flow Status -11: CL_BUILD_PROGRAM_FAILURE -DDIS_BORDER_SIZE=16 -DDIS_PATCH_SIZE=8 -DDIS_PATCH_STRIDE=4 -DCV_USE_SUBGROUPS=1
The opencl version I use is 3.0, and Device extensions supports: cl_khr_subgroups
cl_khr_subgroup_extended_types
cl_khr_subgroup_non_uniform_vote
cl_khr_subgroup_ballot
cl_khr_subgroup_non_uniform_arithmetic
cl_khr_subgroup_shuffle
cl_khr_subgroup_shuffle_relative
cl_khr_subgroup_clustered_reduce
cl_khr_subgroup_rotate

Steps to reproduce

run command:
opencv_perf_video --gtest_filter=OCL_DenseOpticalFlow_DIS_perf.perf/0

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/opencv/opencv/issues/27507

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy