Results 1 to 2 of 2

Thread: question about global memory access

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    6

    question about global memory access

    Hi,
    I have a question about global memory access.
    I compared two ways to access the global memory.
    One is to let all threads access the same location and the other is to let threads access their own memory.
    I found the former spent less time.
    The former involves memory conflict, why it is faster? Due to cache?

    Many thanks.

    CL

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    198
    In modern hardware, the case of all work items reading the same location (known as a "broadcast") does not cause a conflict and is therefore not serialized (and so fast).

Posting Permissions

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