Invention Grant
- Patent Title: Interlocked increment memory allocation and access
- Patent Title (中): 联锁增量内存分配和访问
-
Application No.: US12553652Application Date: 2009-09-03
-
Publication No.: US09529632B2Publication Date: 2016-12-27
- Inventor: Michael Mantor , John McCardle , Marcos Zini , Brian Emberling
- Applicant: Michael Mantor , John McCardle , Marcos Zini , Brian Emberling
- Applicant Address: US CA Sunnyvale
- Assignee: Advanced Micro Devices, Inc.
- Current Assignee: Advanced Micro Devices, Inc.
- Current Assignee Address: US CA Sunnyvale
- Agency: Volpe and Koenig, P.C.
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06F13/00 ; G06F13/28 ; G06F9/50

Abstract:
A method of allocating a memory to a plurality of concurrent threads is presented. The method includes dynamically determining writer threads each having at least one pending write to the memory; and dynamically allocating respective contiguous blocks in the memory for each of the writer threads. Another method of allocating a memory to a plurality of concurrent threads includes launching the plurality of threads as a plurality of wavefronts, dynamically determining a group of wavefronts each having at least one thread requiring a write to the memory, and dynamically allocating respective contiguous blocks in the memory for each wavefront from the group of wavefronts. A corresponding method of assigning a memory to a plurality of reader threads includes determining a first number corresponding to a number of writer threads having a block allocated in said memory, launching a first number of reader threads, entering a first wavefront of said reader threads from said group of wavefronts to an atomic operation, and assigning a first block in the memory to the first wavefront during the corresponding atomic operation, where the first block is contiguous to a previously allocated block dynamically allocated to another wavefront from said group of wavefronts. Corresponding system embodiments and computer program product embodiments are also presented.
Public/Granted literature
- US20110055511A1 Interlocked Increment Memory Allocation and Access Public/Granted day:2011-03-03
Information query