# Why are the supported opencl related functions slower on gpu than on cpu

**URL:** <https://forum.opencv.org/t/why-are-the-supported-opencl-related-functions-slower-on-gpu-than-on-cpu/18174>\
**Category:** C++\
**Tags:** opencl, gpu, imgproc\
**Created:** [July 5, 2024, 8:34am UTC](https://forum.opencv.org/t/why-are-the-supported-opencl-related-functions-slower-on-gpu-than-on-cpu/18174 "2024-07-05T08:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lurie\_Qian](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/lurie_qian/32/8452_2.png) [@Lurie\_Qian](https://forum.opencv.org/u/Lurie_Qian)\
**Post date:** [July 5, 2024, 8:34am UTC](https://forum.opencv.org/t/why-are-the-supported-opencl-related-functions-slower-on-gpu-than-on-cpu/18174/1 "2024-07-05T08:34:19Z")

</div>

Here is my output of clinfo:  
Device #0  
Name: Mali-G310 r0p0  
Type: GPU  
Version: OpenCL 3.0 r47p0-01eac0.01561d4.3a706e57d4ed33080af820beda5ab9fe  
Global memory size: 15 GB 359 MB 644 kB  
Local memory size: 32 kB  
Max work group size: 512  
Max work item sizes: (512, 512, 512)  
When I use OpenCL to run functions such as cvtcolor, its performance is not as good as that of the CPU. Has anyone encountered this problem?  
Is it that the OCL module is not compatible with my GPU? Do I need to change any parameters or variables?
