Results 1 to 2 of 2

Thread: Global memory alignment

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    5

    Global memory alignment

    In order to have coalesced access to global memory, memory addresses must increase sequentially across the work-items in the wavefront and start on a 128-byte alignment boundary.

    my very newbie questions are: how the buffers created with clCreateBuffer are aligned (and in general every argument to a kernel function)? it depends also from the flags we choose during the creation? there's some way to check if global memory access are coalesced on an amd platform?

    Thanks

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

    Re: Global memory alignment

    There's no real way to control this alignment. Since the driver does the data movement/allocation/management you can reasonably assume that the global structures will be nicely aligned for you. You are just responsible for aligning your accesses as needed.

Similar Threads

  1. Suggestion: Querying memory object alignment
    By codedivine in forum OpenCL
    Replies: 1
    Last Post: 05-07-2012, 11:57 PM
  2. memory alignment for struct members
    By fangq in forum OpenCL
    Replies: 4
    Last Post: 04-12-2011, 02: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
  •