# US 2017/0293499 A1 · Message Handler Compiling and Scheduling in Heterogeneous System Architectures

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

- Number: US 2017/0293499 A1
- Document ID: US20170293499A1
- Status: Published application
- Kind: A1
- Application number: 15/094,615
- Filed: 2016-04-08
- Published: 2017-10-12
- Earliest claimed: 2016-04-08
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Shuai Che; Marc S. Orr
- Web page: https://patentgrep.com/patent/US20170293499A1

## CPC

- G06F 9/4552: {Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A receiving node in a computer system that includes a plurality of types of execution units receives an active message from a sending node. The receiving node compiles an intermediate language message handler corresponding to the active message into a machine instruction set architecture (ISA) message handler and the receiver executes the ISA message handler on a selected one of the execution units. If the active message handler is not available at the receiver, the sender sends an intermediate language version of the message handler to the receiving node. The execution unit selected to execute the message handler is chosen based on a field in the active message or on runtime criteria in the receiving system.

## Claims

### Claim 1

A method comprising:
receiving an active message at a receiver including a plurality of types of execution units;
compiling in the receiver an intermediate language message handler corresponding to the active message into a machine instruction set architecture (ISA) message handler of one of the execution units; and
executing the ISA message handler on a selected one of the execution units.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising:
selecting the selected execution unit based on a field in the active message.

### Claim 3 (depends on 1)

The method as recited in claim 1, further comprising:
selecting the selected execution unit to execute the function based on a determination made by an active message runtime scheduler.

### Claim 4 (depends on 1)

The method as recited in claim 1, further comprising:
receiving the intermediate language message handler from a sender of the active message.

### Claim 5 (depends on 4)

The method as recited in claim 4, further comprising:
the receiver sending to the sender an indication that the receiver does not have the intermediate language message handler; and
the sender sending the intermediate language message handler to the receiver responsive to the indication.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein the execution unit is a central processing unit or a graphics processing unit.

### Claim 7 (depends on 1)

The method as recited in claim 1, further comprising:
storing a plurality of active messages having a same message handler for batch execution; and
executing a message handler associated with the stored active messages after a threshold number of active messages have been stored.

### Claim 8 (depends on 1)

The method as recited in claim 1, further comprising:
storing one or more active messages having the same message handler for batch execution; and
executing a message handler associated with the one or more stored active messages after a threshold period of time has expired or a threshold number of active messages have been stored, the threshold number being a number of active messages triggering batch execution.

### Claim 9

An apparatus comprising:
a receiving device including a plurality of execution units; and
a communication interface in the receiving device coupled to receive an active message identifying a message handler corresponding to the active message;
wherein the receiving device is responsive to receipt of the active message to compile an intermediate language message handler corresponding to the active message into a machine instruction set architecture message handler for execution on a selected one of the plurality of execution units.

### Claim 10 (depends on 9)

The apparatus as recited in claim 9, wherein the selected one of the execution units is determined according to a field in the active message.

### Claim 11 (depends on 9)

The apparatus as recited in claim 9, wherein the selected one of the execution units is determined according to an active message runtime scheduler.

### Claim 12 (depends on 9)

The apparatus as recited in claim 9, further comprising:
a sending device coupled to the receiving device over a communication interface; to send the active message to the receiving device.

### Claim 13 (depends on 12)

The apparatus as recited in claim 12, wherein the sending device is configured to send the intermediate language message handler to the receiving device responsive to an indication that the receiving device does not have a message handler corresponding to the active message.

### Claim 14 (depends on 9)

The apparatus as recited in claim 9, wherein the execution units include a central processing unit and a graphics processing unit.

### Claim 15 (depends on 9)

The apparatus as recited in claim 9, wherein the receiving device is configured to:
store for batch execution a plurality of active messages having a same message handler; and
execute the same message handler corresponding to the plurality of active messages after a threshold number of active messages have been stored.

### Claim 16 (depends on 9)

The apparatus as recited in claim 9, wherein the receiving device is configured to:
store for batch execution one or more active messages having a same message handler; and
execute the same message handler corresponding to the one or more active messages after a threshold period of time has expired or a threshold number of active messages have been stored.

### Claim 17

A method comprising:
storing a first message handler in a precompiled instruction set architecture (ISA) format at a receiver;
storing a second message handler in an intermediate language format at the receiver; and
receiving a third message handler in an intermediate format from a sender of a first active message.

### Claim 18 (depends on 17)

The method as recited in claim 17, further comprising:
registering the third message handler in the receiver;
compiling the third message handler from the intermediate format to a machine ISA format; and
executing the third message handler in the machine ISA format.

### Claim 19 (depends on 17)

The method as recited in claim 17, further comprising:
receiving a second active message at the receiver; and
executing one of the first, second and third message handlers in machine ISA format responsive to receipt of the second active message.

### Claim 20 (depends on 17)

The method as recited in claim 17, further comprising:
the receiver sending to the sender an indication that the receiver does not have the third message handler prior to receiving the third message handler in an intermediate format.
