# US 2010/0161911 A1 · Method and apparatus for mpi program optimization

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0161911 A1
- Document ID: US20100161911A1
- Status: Published application
- Kind: A1
- Application number: 12/598,597
- Filed: 2007-05-31
- Published: 2010-06-24
- Earliest claimed: 2007-05-31
- Assignees: Intel Corporation
- Inventors: Eric Li; Wenlong Li; Jiulong Shan; Yurong Chen; Yimin Zhang
- Web page: https://patentgrep.com/patent/US20100161911A1

## CPC

- G06F 8/443: {Optimisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Machine readable media, methods, apparatus and system for MPI program optimization. In some embodiments, shared data may be retrieved from a message passing interface (MPI) program, wherein the shared data is sharable by a plurality of processes. Then, the shared data may be allocated to a shared memory, wherein the shared memory is accessible by the plurality of processes. A single copy of the shared data may be maintained in the shared data in a global buffer of the processes of the plurality of processes can read or write the single copy of the shared data from or to the shared memory.

## Claims

### Claim 1

A machine-readable medium comprising a plurality of instructions that in response to being executed result in a system:
retrieving shared data from a message passing interface (MPI) program, wherein the shared data is sharable by a plurality of processes;
allocating the shared data to a shared memory, wherein the shared memory is accessible by the plurality of processes; and
maintaining a single copy of the shared data in the shared memory so that more than one processes of the plurality of processes can read or write the single copy of the shared data from or to the shared memory.

### Claim 2 (depends on 1)

The machine-readable medium of claim 1, wherein the plurality of instructions further result in the system:
annotating the shared data with a shared directive.

### Claim 3 (depends on 1)

The machine-readable medium of claim 1, wherein the plurality of instructions further result in the system:
indicating a MPI communication pattern for the shared data that the more than one process of the plurality of processes can read or write the single copy of the shared data from or to the shared memory.

### Claim 4 (depends on 1)

The machine-readable medium of claim 1, wherein the plurality of instructions that result in the system allocating, further result in the system:
allocating the shared data in a buffer of the shared memory; and
mapping a memory address of the buffer to the plurality of processes.

### Claim 5 (depends on 1)

The machine-readable medium of claim 1, wherein the plurality of instructions further result in the system:
determining to read or write the shared data from or to the shared memory;
obtaining a memory address of the single copy of the shared data in the shared memory; and
reading or writing the single copy of the shared data from or to the memory address.

### Claim 6

A system, comprising:
a retriever to retrieve shared data from a message passing interface (MPI) program, wherein the shared data is sharable by a plurality of processes; and
a library to allocate the shared data to a shared memory and to maintain a single copy of the shared data in the shared memory so that more than one processes of the plurality of processes can read or write the single copy of the shared data from or to the shared memory, wherein the shared memory is accessible by the plurality of processes.

### Claim 7 (depends on 6)

The system of claim 6, further comprising an annotator to annotate the shared data with a shared directive.

### Claim 8 (depends on 6)

The system of claim 6, further comprising a parser to indicate the MPI communication pattern for the shared data that the more than one process of the plurality of processes can read or write the single copy of the shared data from or to the shared memory.

### Claim 9 (depends on 6)

The system of claim 6, wherein the library further allocates the shared data in a buffer of the shared memory; and maps a memory address of the buffer to the plurality of processes.

### Claim 10 (depends on 6)

The system of claim 6, further comprising the plurality of processes, wherein a process of the plurality of processes determines to read or write the shared data from the shared memory; obtains a memory address of the single copy of the shared data in the shared memory; and reads or writes the single copy of the shared data from or to the memory address.

### Claim 11

A method:
retrieving shared data from a message passing interface (MPI) program, wherein the shared data is sharable by a plurality of processes;
allocating the shared data to a shared memory, wherein the shared memory is accessible by the plurality of processes; and
maintaining a single copy of the shared data in the shared memory so that more than one processes of the plurality of processes can read or write the single copy of the shared data from or to the shared memory.

### Claim 12 (depends on 11)

The method of claim 11, further comprising annotating the shared data with a shared directive.

### Claim 13 (depends on 11)

The method of claim 11, further comprising indicating a MPI communication pattern for the shared data that the more than one process of the plurality of processes can read or write the single copy of the shared data from or to the shared memory.

### Claim 14 (depends on 11)

The method of claim 11, wherein the allocating further comprises:
allocating the shared data in a buffer of the shared memory; and
mapping a memory address of the buffer to the plurality of processes.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
determining to read or write the shared data from or to the shared memory;
obtaining a memory address of the single copy of the shared data in the shared memory; and
reading or writing the single copy of the shared data from or to the memory address.
