IP Library Granted Patent US 9,996,350
Granted Patent B2
US 9,996,350 · App. 14/583,651 · Granted Jun 12, 2018

Hardware apparatuses and methods to prefetch a multidimensional block of elements from a multidimensional array

Inventors: Victor Lee (Santa Clara, CA); Mikhail Smelyanskiy (San Francisco, CA); Alexander Heinecke (San Jose, CA)
Assignee: INTEL CORPORATION
G06F9/30047G06F9/30145G06F9/34G06F9/3455G06F12/0875G06F2212/452
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 9,996,350
App. No.
14/583,651
Granted
Jun 12, 2018
Kind
B2
Abstract

Methods and apparatuses relating to a prefetch instruction to prefetch a multidimensional block of elements from a multidimensional array into a cache. In one embodiment, a hardware processor includes a decoder to decode a prefetch instruction to prefetch a multidimensional block of elements from a multidimensional array into a cache, wherein at least one operand of the prefetch instruction is to indicate a system memory address of an element of the multidimensional block of elements, a stride of the multidimensional block of elements, and boundaries of the multidimensional block of elements, and an execution unit to execute the prefetch instruction to generate system memory addresses of the other elements of the multidimensional block of elements, and load the multidimensional block of elements into the cache from the system memory addresses.

Claims (45)

1. A hardware processor comprising:

a decoder to decode a prefetch instruction to prefetch a multidimensional block of elements from a multidimensional array into a cache, wherein at least one operand of the prefetch instruction is to indicate a system memory address of an element of the multidimensional block of elements, a stride of the multidimensional block of elements, and boundaries of the multidimensional block of elements; and

an execution unit to execute the decoded prefetch instruction to:

generate system memory addresses of the other elements of the multidimensional block of elements; and

load the multidimensional block of elements into the cache from the system memory addresses.

2. The hardware processor of claim 1 , further comprising a prefetch unit to generate the system memory addresses of the other elements of the multidimensional block of elements from a state machine.

3. The hardware processor of claim 2 , wherein the prefetch unit further comprises an adder to generate the system memory addresses of the other elements of the multidimensional block of elements.

4. The hardware processor of claim 2 , wherein the prefetch unit further comprises an address generation unit to generate the system memory addresses of the other elements of the multidimensional block of elements.

5. The hardware processor of claim 1 , wherein the at least one operand of the prefetch instruction is to indicate a level of the cache to load the multidimensional block of elements.

6. The hardware processor of claim 1 , wherein the stride comprises a first stride in a first dimension and a different, second stride in a second dimension.

7. The hardware processor of claim 1 , wherein the execution unit is to load the multidimensional block of elements into a victim cache.

8. The hardware processor of claim 1 , wherein the execution unit is to replace a speculative prefetch data set in the cache with the multidimensional block of elements.

9. A method comprising:

decoding, with a decode unit, a prefetch instruction to prefetch a multidimensional block of elements from a multidimensional array into a cache, wherein at least one operand of the prefetch instruction is to indicate a system memory address of an element of the multidimensional block of elements, a stride of the multidimensional block of elements, and boundaries of the multidimensional block of elements; and

executing with an execution unit the decoded prefetch instruction to:

generate system memory addresses of the other elements of the multidimensional block of elements; and

load the multidimensional block of elements into the cache from the system memory addresses.

10. The method of claim 9 , further comprising providing a prefetch unit to generate the system memory addresses of the other elements of the multidimensional block of elements from a state machine.

11. The method of claim 10 , wherein the prefetch unit further comprises an adder to generate the system memory addresses of the other elements of the multidimensional block of elements.

12. The method of claim 10 , wherein the prefetch unit further comprises an address generation unit to generate the system memory addresses of the other elements of the multidimensional block of elements.

13. The method of claim 9 , wherein the at least one operand of the prefetch instruction is to indicate a level of the cache to load the multidimensional block of elements.

14. The method of claim 9 , wherein the stride comprises a first stride in a first dimension and a different, second stride in a second dimension.

15. The method of claim 9 , wherein the execution unit is to load the multidimensional block of elements into a victim cache.

16. The method of claim 9 , wherein the execution unit is to replace a speculative prefetch data set in the cache with the multidimensional block of elements.

17. An apparatus comprising:

a set of one or more processors; and

a set of one or more data storage devices that stores code, that when executed by the set of processors causes the set of one or more processors to perform the following:

decoding, with a decode unit, a prefetch instruction to prefetch a multidimensional block of elements from a multidimensional array into a cache, wherein at least one operand of the prefetch instruction is to indicate a system memory address of an element of the multidimensional block of elements, a stride of the multidimensional block of elements, and boundaries of the multidimensional block of elements; and

executing with an execution unit the decoded prefetch instruction to:

generate system memory addresses of the other elements of the multidimensional block of elements; and

load the multidimensional block of elements into the cache from the system memory addresses.

18. The apparatus of claim 17 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

further comprising providing a prefetch unit to generate the system memory addresses of the other elements of the multidimensional block of elements from a state machine.

19. The apparatus of claim 18 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

wherein the prefetch unit further comprises an adder to generate the system memory addresses of the other elements of the multidimensional block of elements.

20. The apparatus of claim 18 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

wherein the prefetch unit further comprises an address generation unit to generate the system memory addresses of the other elements of the multidimensional block of elements.

21. The apparatus of claim 17 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

wherein the at least one operand of the prefetch instruction is to indicate a level of the cache to load the multidimensional block of elements.

22. The apparatus of claim 17 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

wherein the stride comprises a first stride in a first dimension and a different, second stride in a second dimension.

23. The apparatus of claim 17 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

wherein the execution unit is to load the multidimensional block of elements into a victim cache.

24. The apparatus of claim 17 , wherein the set of data storage devices further stores code, that when executed by the set of processors causes the set of processors to perform the following:

wherein the execution unit is to replace a speculative prefetch data set in the cache with the multidimensional block of elements.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 4, 2015
From: LEE, VICTOR W.; SMELYANSKIY, MIKHAIL; HEINECKE, ALEXANDER F.
To: INTEL CORPORATION
Reel/Frame 036959/0890 →
Continuity (1)
Related Publication 20160188337A1 · Jun 30, 2016