IP Library › Granted Patent US 8,161,480
Granted Patent B2
US 8,161,480 · App. 11/754,782 · Granted Apr 17, 2012

Performing an allreduce operation using shared memory

Assignee: International Business Machines Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,161,480
App. No.
11/754,782
Granted
Apr 17, 2012
Kind
B2
Abstract

Methods, apparatus, and products are disclosed for performing an allreduce operation using shared memory that include: receiving, by at least one of a plurality of processing cores on a compute node, an instruction to perform an allreduce operation; establishing, by the core that received the instruction, a job status object for specifying a plurality of shared memory allreduce work units, the plurality of shared memory allreduce work units together performing the allreduce operation on the compute node; determining, by an available core on the compute node, a next shared memory allreduce work unit in the job status object; and performing, by that available core on the compute node, that next shared memory allreduce work unit.

Claims (62)

1. A method for performing an allreduce operation using shared memory, the method comprising:

receiving, by at least one of a plurality of processing cores on a compute node, an instruction to perform an allreduce operation;

establishing, by the core that received the instruction, a job status object for specifying a plurality of shared memory allreduce work units, the plurality of shared memory allreduce work units together performing the allreduce operation on the compute node;

determining, by an available core on the compute node, a next shared memory allreduce work unit in the job status object; and

performing, by that available core on the compute node, that next shared memory allreduce work unit;

providing, by each available core to each other available core, a read-only window into a local memory buffer containing an array to be reduced by the allreduce operation; and

updating, by each available core on the compute node, the job status object with a descriptor of the buffer into which the read-only window is provided.

2. The method of claim 1 wherein establishing, by the core that received the instruction, a job status object for specifying a plurality of shared memory allreduce work units further comprises assigning a plurality of threads for executing the shared memory allreduce work units.

3. The method of claim 1 further comprising:

copying, by each available core on the compute node into separate shared memory buffers, an array to be reduced by the allreduce operation; and

updating, by each available core on the compute node, the job status object with a descriptor of the shared memory buffer into which the available core copied the array.

4. The method of claim 1 wherein performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises performing a reduction operation on elements of arrays to be reduced.

5. The method of claim 1 wherein:

the compute node is connected to a plurality of other compute nodes through a data communications network; and

performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises transmitting, by that available core, local reduction results to one or more of the other compute nodes through the network.

6. The method of claim 1 wherein:

the compute node is connected to a plurality of other compute nodes through a data communications network;

performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises:

receiving global reduction results through the network, and

storing the global reduction results into shared memory; and

the method further comprises copying, by each available core on the compute node, the global reduction results from the shared memory to local memory of the available core.

7. A compute node for performing an allreduce operation using shared memory, the compute node comprising a plurality of processing cores, computer memory operatively coupled to the plurality of processing cores, the computer memory having disposed within it computer program instructions for:

receiving, by at least one of the plurality of processing cores on the compute node, an instruction to perform an allreduce operation;

establishing, by the core that received the instruction, a job status object for specifying a plurality of shared memory allreduce work units, the plurality of shared memory allreduce work units together performing the allreduce operation on the compute node;

determining, by an available core on the compute node, a next shared memory allreduce work unit in the job status object; and

performing, by that available core on the compute node, that next shared memory allreduce work unit;

providing, by each available core to each other available core, a read-only window into a local memory buffer containing an array to be reduced by the allreduce operation; and

updating, by each available core on the compute node, the job status object with a descriptor of the buffer into which the read-only window is provided.

8. The compute node of claim 7 wherein the computer memory also has disposed within it computer program instructions capable of:

copying, by each available core on the compute node into separate shared memory buffers, an array to be reduced by the allreduce operation; and

updating, by each available core on the compute node, the job status object with a descriptor of the shared memory buffer into which the available core copied the array.

9. The compute node of claim 7 wherein performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises performing a reduction operation on elements of arrays to be reduced.

10. The compute node of claim 7 wherein:

the compute node is connected to a plurality of other compute nodes through a data communications network; and

performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises transmitting, by that available core, local reduction results to one or more of the other compute nodes through the network.

11. The compute node of claim 7 wherein:

the compute node is connected to a plurality of other compute nodes through a data communications network;

performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises:

receiving global reduction results through the network, and

storing the global reduction results into shared memory; and

the computer memory also has disposed within it computer program instructions capable of copying, by each available core on the compute node, the global reduction results from the shared memory to local memory of the available core.

12. A computer program product for performing an allreduce operation using shared memory, the computer program product disposed upon a computer-readable, recordable storage medium, the computer program product comprising computer program instructions for:

receiving, by at least one of a plurality of processing cores on a compute node, an instruction to perform an allreduce operation;

establishing, by the core that received the instruction, a job status object for specifying a plurality of shared memory allreduce work units, the plurality of shared memory allreduce work units together performing the allreduce operation on the compute node;

determining, by an available core on the compute node, a next shared memory allreduce work unit in the job status object; and

performing, by that available core on the compute node, that next shared memory allreduce work unit;

providing, by each available core to each other available core, a read-only window into a local memory buffer containing an array to be reduced by the allreduce operation; and

updating, by each available core on the compute node, the job status object with a descriptor of the buffer into which the read-only window is provided.

13. The computer program product of claim 12 wherein establishing, by the core that received the instruction, a job status object for specifying a plurality of shared memory allreduce work units further comprises assigning a plurality of threads for executing the shared memory allreduce work units.

14. The computer program product of claim 12 further comprising computer program instructions capable of:

copying, by each available core on the compute node into separate shared memory buffers, an array to be reduced by the allreduce operation; and

updating, by each available core on the compute node, the job status object with a descriptor of the shared memory buffer into which the available core copied the array.

15. The computer program product of claim 12 wherein performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises performing a reduction operation on elements of arrays to be reduced.

16. The computer program product of claim 12 wherein:

the compute node is connected to a plurality of other compute nodes through a data communications network; and

performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises transmitting, by that available core, local reduction results to one or more of the other compute nodes through the network.

17. The computer program product of claim 12 wherein:

the compute node is connected to a plurality of other compute nodes through a data communications network;

performing, by that available core on the compute node, that next shared memory allreduce work unit further comprises:

receiving global reduction results through the network, and

storing the global reduction results into shared memory; and

the computer program product further comprises computer program instructions capable of copying, by each available core on the compute node, the global reduction results from the shared memory to local memory of the available core.

Assignments (2)
CONFIRMATORY LICENSE Recorded Dec 27, 2007
From: INTERNATIONAL BUSINESS MACHINES CORP.
To: ENERGY, U.S. DEPARTMENT OF
Reel/Frame 020308/0890 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 29, 2007
From: ARCHER, CHARLES J; DOZSA, GABOR; RATTERMAN, JOSEPH D; SMITH, BRIAN E
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 019351/0664 →
Continuity (1)
Related Publication 20080301683A1 · Dec 4, 2008