Results 1 to 3 of 3

Thread: inconsistent data

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    20

    inconsistent data

    Hi,
    I have a doubt: if Im working with data parallel (using ClEnqueueNDRangeKernel..) and Im launching many kernels and in some cases the data that is the input of a kernel is the output of a previous one, and all these is in a loop that is executed n times, can I be certain that the kernels will not overlap and use inconsistent data? or do I have to make something to make it work like that? Up to the moment I thought that it should be automatic as Im not using task parallel. Thanks!!

    Pablo

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    271

    Re: inconsistent data

    Unless you have an out-of-order queue, the jobs queued on a single queue are guaranteed to execute in the sequence queued up and will not overlap, this includes memory transfers and kernel invocations. By default queues are in-order.

    You can use events if you need to synchronise between queues, and/or are using out of order queues.

    It's not just named a 'queue' for fun, it is a standard 'queue' data type: which means FIFO ordering. Pretty basic computer science

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    20

    Re: inconsistent data

    thanks again!! yes I know but I saw it used sometimes where I thought it would not be necessary so I started to have doubts!!

    Pablo

Similar Threads

  1. Replies: 2
    Last Post: 08-12-2012, 05:16 PM
  2. Inconsistent Results
    By mflamer in forum OpenCL
    Replies: 6
    Last Post: 06-06-2012, 10:58 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
  •