Results 1 to 2 of 2

Thread: clflush or clfinish

  1. #1

    clflush or clfinish

    when to use clfinish or clflush or nothing, if i have single command_queue .

  2. #2
    Senior Member
    Join Date
    Oct 2012

    Re: clflush or clfinish

    To keep the answer as short as your question:
    Read the spec!

    If you just want to be shure that all work is finished at the end of the day, you could enqueue the last read blocking. If you have an ordered queue, this will be enought. If you have kernel b and c, both waiting for a result of a, there could be problems. In that cases, flush will do what you want.

    I'm not really shure but i think finish is only needed when you want to change things on your context / queue

Similar Threads

  1. Wondering when I should use clFlush or clFinish.
    By mercuryknight in forum OpenCL
    Replies: 9
    Last Post: 05-29-2012, 12:29 AM
  2. problem with clFinish
    By gerstla in forum OpenCL
    Replies: 2
    Last Post: 09-19-2011, 03:21 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