Results 1 to 2 of 2

Thread: Cache flushing after 'clEnqueueNDRangeKernel'

  1. #1

    Cache flushing after 'clEnqueueNDRangeKernel'

    hi,

    After calling "clEnqueueNDRangeKernel" are the caches flushed? From my initial observation it seems on GPU L1 is flushed but L2 is not flushed. Am I correct? what happens in case of cpu?

    Thanks.

  2. #2

    Re: Cache flushing after 'clEnqueueNDRangeKernel'

    That is entirely a function of the specific hardware and driver you're using. Firstly, it has no effect on correctness - caches are an implementation detail that are invisible apart from their effect on performance.

    If you're asking about it from a performance/tuning point of view, you'll need to consult the documentation for whichever piece of hardware you're using, assuming it is even documented. It might not even be a simple answer - it could depend on things like what types of memory are being used, whether the memory has been mapped etc.

Similar Threads

  1. Should I cache get_global_id(0)?
    By yoavhacohen in forum OpenCL
    Replies: 1
    Last Post: 02-03-2012, 05:23 PM
  2. Better cache control
    By pelotoescogorciao in forum OpenCL
    Replies: 0
    Last Post: 11-02-2010, 05:25 AM
  3. Atomics and flushing
    By Rui in forum OpenCL
    Replies: 1
    Last Post: 04-06-2010, 10:33 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
  •