Deallocation of memory buffer in multiprocessor systems
AssigneeInternational Business Machines Corporation
InventorsJeffrey P. Kubala, Jerry A. Moody, Muruganandam Somasundaram
Life of this patent
Estimating the term…
Abstract
Described herein are technical features for freeing a buffer used during execution of a work-item by a multiprocessor. An example method includes identifying a first processing unit that assigned the buffer to the work-item, in response to a request from a second processing unit to free the buffer. The computer-implemented method also includes identifying a bitmap associated with the buffer, the bitmap being in a local memory of the first processing unit. The computer-implemented method also includes updating a bit from the bitmap to indicate that the buffer has been freed, the bit corresponding to the buffer.
Claims20
A computer implemented method for allocating a buffer used during execution of a work-item by a multiprocessor, the method comprising:
- allocating, by a first processing unit, a buffer in a shared memory of the multiprocessor, the buffer being allocated for use by a second processing unit;
- identifying a bitmap associated with the buffer, the bitmap being in a local memory of the first processing unit;
- and
- updating a bit from the bitmap to indicate that the buffer has been allocated, the bit corresponding to the buffer.
A system for allocating a buffer used during execution of a work-item by a multiprocessor, the system comprising:
- a plurality of processing units;
- a memory accessible by the plurality of processing units in the system;
- and
- a memory controller coupled with the plurality of processing units and the memory, wherein the memory controller is configured to:
- allocate, in response to a request from a first processing unit, the buffer in the memory, the buffer assigned to the work-item that is being executed by a second processing unit;
- identify a bitmap associated with the buffer, the bitmap being in a local memory of the first processing unit;
- and
- update a bit from the bitmap to indicate that the buffer has been allocated and assigned, the bit corresponding to the buffer.
A computer program product for allocating a buffer used during execution of a work-item by a multiprocessor, the computer program product comprising a computer readable storage medium, the computer readable storage medium comprising computer executable instructions, wherein the computer readable storage medium comprises instructions to:
- allocate, in response to a request from a first processing unit, the buffer in a memory that is accessible by a plurality of processing units of the multiprocessor, the buffer assigned to the work-item that is being executed by a second processing unit;
- identify a bitmap associated with the buffer, the bitmap being in a local memory of the first processing unit;
- and
- update a bit from the bitmap to indicate that the buffer has been allocated and assigned, the bit corresponding to the buffer.
Dependencies are inferred from the claim text.