Results 1 to 2 of 2

Thread: Does the number of arguments affect to the performance ?

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    27

    Does the number of arguments affect to the performance ?

    Hello.

    Sometimes my kernel uses 7~10 arguments and it might be too many for a kernel.
    So I wonder whether the number of arguments affect to the performance of my kernel.
    For example, I can reduce the number of arguments by merging some memory structures.
    If I reduce the number of arguments from 8 to 4, does this help to improve the kernel's performance ?

  2. #2
    Junior Member
    Join Date
    Mar 2010
    Posts
    22

    Re: Does the number of arguments affect to the performance ?

    Well, in my opinion the number is not the problem, the problem is p.e. the size of the elements that you are passing throw the kernel, be carefully in the size of allocations in local memory. If the size is the same, why do you think reducing the number of arguments enhace throughput?

Similar Threads

  1. Does NDRange affect performance?
    By ibai in forum OpenCL
    Replies: 5
    Last Post: 03-12-2012, 06:05 PM
  2. how do work-groups affect performance?
    By Andre in forum OpenCL
    Replies: 4
    Last Post: 08-11-2011, 12:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •