# US 2021/0286700 A1 · Processor performance measurement apparatus and processor performance measurement method

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

- Number: US 2021/0286700 A1
- Document ID: US20210286700A1
- Status: Published application
- Kind: A1
- Application number: 17/007,541
- Filed: 2020-08-31
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: Kabushiki Kaisha Toshiba; Toshiba Electronic Devices & Storage Corporation
- Applicants: Kabushiki Kaisha Toshiba; Toshiba Electronic Devices & Storage Corporation
- Inventors: Yusuke Natsui
- Web page: https://patentgrep.com/patent/US20210286700A1

## CPC

- G06F 11/3495: {for systems}
- G06F 11/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3409: {for performance assessment}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06N 3/02: Neural networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A processor performance measurement apparatus according to an embodiment includes a processor, in which the processor detects that a memory access occurs, the memory access being required to execute processing units or execute execution units by a processor to be measured, performs first estimation for estimating switching of the processing units or the execution units and second estimation for estimating which of the one or more processing units the processing unit being executed is or to which of the one or more processing units the execution unit being executed corresponds based on an address of an access destination of the memory access, measures respective performances in the processing units or the execution units based on an estimation result of the first estimation, and aggregates respective measurement results of the performances for each of the processing units based on an estimation result of the second estimation.

## Claims

### Claim 1

A processor performance measurement apparatus comprising:
a processor,
wherein the processor
detects that a memory access occurs, the memory access being required to execute processing units or execute execution units by a processor to be measured, the processor to be measured being configured to implement a predetermined function by one or more processing units and one or more execution units required to execute the processing units,
performs first estimation for estimating switching of the processing units or the execution units and second estimation for estimating which of the one or more processing units the processing unit being executed is or to which of the one or more processing units the execution unit being executed corresponds based on an address of an access destination of the memory access,
measures respective performances in the processing units or the execution units based on an estimation result of the first estimation, and
aggregates respective measurement results of the performances for each of the processing units based on an estimation result of the second estimation.

### Claim 2 (depends on 1)

The processor performance measurement apparatus according to claim 1, wherein
the processor to be measured achieves the predetermined function by a neural network,
the processing units are respectively layers constituting the neural network, and
the execution units are respectively instruction executions of the processor to be measured.

### Claim 3 (depends on 2)

The processor performance measurement apparatus according to claim 2, wherein
the processor to be measured stores in a register information for an instruction execution based on an instruction to implement the predetermined function, and
the processor detects writing of information into the register, to perform the first estimation.

### Claim 4 (depends on 3)

The processor performance measurement apparatus according to claim 3, wherein
the processor to be measured stores in a register information for an instruction execution based on an instruction to implement the predetermined function, and
the processor performs the second estimation based on at least one of an input/output address written into the register and a shape of the input/output and a weight address and a shape of the weight.

### Claim 5 (depends on 1)

The processor performance measurement apparatus according to claim 1, wherein
the processor to be measured implements affine transformation as the predetermined function, and
the processing units are respectively one or more operation modules for implementing the affine transformation.

### Claim 6 (depends on 5)

The processor performance measurement apparatus according to claim 5, wherein
the processor detects the memory access by the processor to be measured, to perform the first estimation.

### Claim 7 (depends on 6)

The processor performance measurement apparatus according to claim 6, wherein
the processor performs the second estimation based on at least one of an input/output address and an affine transformation table address as the address of the access destination.

### Claim 8 (depends on 1)

The processor performance measurement apparatus according to claim 1, wherein
the processor to be measured implements the predetermined function while transferring data stored in a global memory to a local memory, and
the processor performs address transformation between an address of the global memory and an address of the local memory, and then performs the second estimation.

### Claim 9

A processor performance measurement apparatus comprising:
a processor,
wherein the processor
detects that a memory access occurs, the memory access being required to execute instruction executions by a processor to be measured, the processor to be measured being configured to implement a predetermined function by one or more instruction executions required to execute one or more layers constituting a neural network,
performs first estimation for estimating switching of the instruction executions and second estimation for estimating to which of the one or more layers the instruction execution being executed corresponds based on an address of an access destination of the memory access,
measures respective performances in the layers based on an estimation result of the first estimation, and
aggregates respective measurement results of the performances for each of the layers based on an estimation result of the second estimation.

### Claim 10

A processor performance measurement method comprising:
detecting that a memory access occurs, the memory access being required to execute processing units or execute execution units by a processor to be measured, the processor to be measured being configured to implement a predetermined function by one or more processing units and one or more execution units required to execute the processing units;
performing first estimation for estimating switching of the processing units or the execution units and second estimation for estimating which of the one or more processing units the processing unit being executed is or to which of the one or more processing units the execution unit being executed corresponds based on an address of an access destination of the memory access;
measuring respective performances in the processing units or the execution units based on an estimation result of the first estimation; and
aggregating respective measurement results of the performances for each of the processing units based on an estimation result of the second estimation.
