发明授权
- 专利标题: Interlocked increment memory allocation and access
- 专利标题(中): 联锁增量内存分配和访问
-
申请号: US12553652申请日: 2009-09-03
-
公开(公告)号: US09529632B2公开(公告)日: 2016-12-27
- 发明人: Michael Mantor , John McCardle , Marcos Zini , Brian Emberling
- 申请人: Michael Mantor , John McCardle , Marcos Zini , Brian Emberling
- 申请人地址: US CA Sunnyvale
- 专利权人: Advanced Micro Devices, Inc.
- 当前专利权人: Advanced Micro Devices, Inc.
- 当前专利权人地址: US CA Sunnyvale
- 代理机构: Volpe and Koenig, P.C.
- 主分类号: G06F12/00
- IPC分类号: G06F12/00 ; G06F13/00 ; G06F13/28 ; G06F9/50
摘要:
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.
公开/授权文献
- US20110055511A1 Interlocked Increment Memory Allocation and Access 公开/授权日:2011-03-03
信息查询