Results 1 to 2 of 2

Thread: memory consistency in openCL

  1. #1
    Junior Member
    Join Date
    Jun 2012

    memory consistency in openCL

    Does work-items access objects of global memory consistently. I mean to ask if I have a variable 'x' is passed with __global keyword to a kernel with 2 work-groups and each work-group having 5 work-items. The kernel code just performs the operation x=x+1;
    At the end of kernel exection what will be the value of x. Will it always be 10?


  2. #2

    Re: memory consistency in openCL

    no it wont be 10.
    without barrier or other synchronisation u will get random results.
    be aware that barrier is only possible within a workgroup.


Similar Threads

  1. Replies: 6
    Last Post: 02-28-2013, 03:59 PM
  2. Memory consistency model
    By llaves in forum OpenCL
    Replies: 1
    Last Post: 03-27-2010, 05:00 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