发明名称 Interlocked Increment Memory Allocation and Access
摘要 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.
申请公布号 US2011055511(A1) 申请公布日期 2011.03.03
申请号 US20090553652 申请日期 2009.09.03
申请人 ADVANCED MICRO DEVICES, INC. 发明人 MANTOR MICHAEL;MCCARDLE JOHN;ZINI MARCOS;EMBERLING BRIAN
分类号 G06F12/02;G06F9/46;G06F12/00 主分类号 G06F12/02
代理机构 代理人
主权项
地址