Results 1 to 2 of 2

Thread: Private variables compiler optimization?

  1. #1

    Private variables compiler optimization?

    Does OpenCL compiler attempts to conduct private variables optimization?

    Lets say there are two private variables A and B. A is used only in lines 3-9 and B only in lines 10-23, so there is no overlapping. This means that compiler can use only A without declaring B and allocating it extra memory, by simply substituting B with A.

    Is there such thing? (if yes - what about loops?)...

    Thank you!

  2. #2

    Re: Private variables compiler optimization?

    Each OpenCL implementor implements their own compiler, including optimizations. So if you are observing missed opportunities for optmizations on a particular implementation, you should contact the vendor.

Similar Threads

  1. Optimization
    By Frizz in forum OpenCL
    Replies: 1
    Last Post: 11-30-2010, 11:03 AM
  2. Improvements and Optimization.
    By thesidisticme in forum OpenVG
    Replies: 1
    Last Post: 11-02-2010, 06:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean