Results 1 to 2 of 2

Thread: Global memory access

  1. #1

    Global memory access

    Is it possible to make all work-items (from different work-groups) to access a specific global variable consistently and write to it in a synchronized way?

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Global memory access

    Depends on what you mean by "consistently." You can use global atomics to do something like this, but if you want to do cross work-group synchronization then the answer is no. That is explicitly not supported because the OpenCL 1.0 standard does not guarantee forward progress in the scheduler. On some systems this will work (certainly on Nvidia if the number of work-groups is <= number of SMs) but it may not on others.

Similar Threads

  1. Multiple access to global memory
    By barraqueiro in forum OpenCL
    Replies: 2
    Last Post: 11-03-2012, 05:47 PM
  2. concurrent access to global memory
    By xMate23 in forum OpenCL
    Replies: 2
    Last Post: 10-24-2012, 05:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •