This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GPU empty Kernel overhead

Hi,

                   I am observing GPU kernel is taking huge time when I am running an empty kernel. I am Using "Samsung Exynos Octa 5420 Board" which has Mali GPU. I have one kernel which is of work group size around "3000" when I am running it with logic inside kernel and passing arguments, it is taking 2 msec of time but when I run the same kernel without any logic in it and without passing any arguments it is taking 19 msec. What I heard is kernel with less load for will run very fast, but why kernel without any load is taking huge time? For answering this query just consider my logic of kernel as a simple factorial of NxN elements. I hope I gave complete information related my problem, please let me know any more information you need to solve this.

Thanks & Regards,

Narendra Kumar Chepuri.

Parents
  • Hi Narendra,

    Can I confirm when you say "work group size around 3000" that you instead you mean a global work size of 3000, rather than the actual workgroup size.

    It may be worth getting a small reproducer so we could test on our end and figure out what is happening.

    If there is no arguments, then there is no cache maintenance operations and thus that wouldnt be the reason for the execution time. It could also be potentially due to the local workgroup size, however that doesnt fully explain such a large difference in execution time.

    Can I also ask how you are timing this? There maybe an issue in this that is masking the true execution times.

    Thanks,

    Michael McGeagh

Reply
  • Hi Narendra,

    Can I confirm when you say "work group size around 3000" that you instead you mean a global work size of 3000, rather than the actual workgroup size.

    It may be worth getting a small reproducer so we could test on our end and figure out what is happening.

    If there is no arguments, then there is no cache maintenance operations and thus that wouldnt be the reason for the execution time. It could also be potentially due to the local workgroup size, however that doesnt fully explain such a large difference in execution time.

    Can I also ask how you are timing this? There maybe an issue in this that is masking the true execution times.

    Thanks,

    Michael McGeagh

Children