Detecting memory-hazard conflicts during vector processing

a vector processing and memory-hazard technology, applied in the field of computer system performance improvement, can solve problems such as memory hazards, memory hazards, and restricting the use of many features available in modern high-performance processors

Active Publication Date: 2008-11-20
APPLE INC
View PDF22 Cites 51 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0012]One embodiment of the present invention provides a method for performing parallel operations in a computer system when one or more memory hazards may be present, which may be implemented by a processor. During operation, the processor receives instructions for detecting conflict between memory addresses in vectors ...

Problems solved by technology

Among these impediments, one of the more difficult problems to address is memory hazards, such as address hazards, in which different memory references refer to the same address.
The potential for memory hazards often restricts exploitation of many features available in modern high-performance processors.
For example, memory hazards may block instruction-level parallelism (ILP) by preventing load instructions from being hoisted above store instructions.
Furthermore, memory hazards may block data-level parallelism (DLP) by preventing compilers from vectorizing loops, or may block thread-level parallelism by preventing threads from being spawned.
However, these compilers operate without the benefit of runtime information and, therefore, cannot always predetermine if moving a load ahead of a store will be safe.
This uncertainty forces these compilers to be conservative in hoisting loads which greatly sacrifices performance.
This also greatly limits performance in superscalar in-order computers, such as those that implement very-long-instruction-word (VLIW) architectures.
In the case of DLP, existing autovectorizing compilers cannot freely vectorize code for exactly the same memory-hazard-related reasons that scalar and superscalar processors cannot freely reorder loads and stores.
In particular, aggregating a set of temporally sequential operations (such as loop iterations) into a spatially parallel vector creates essentially the same problem as reordering the loads and stores.
In either case, the sequential semantics of the program are potentially viol...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Detecting memory-hazard conflicts during vector processing
  • Detecting memory-hazard conflicts during vector processing
  • Detecting memory-hazard conflicts during vector processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062]The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the claims.

[0063]Embodiments of a processor, a computer system, a compiler, and a technique that facilitate parallel or vector processing in the presence of memory hazards. In particular, these devices, systems, and / or techniques may be used to mitigate or cope with the effects of memory hazards (when present) in a variety of environments, including: data-level-parallelism (DLP) machines, autovectorizin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A method for performing parallel operations in a computer system when one or more memory hazards may be present, which may be implemented by a processor, is described. During operation, the processor receives instructions for detecting conflict between memory addresses in vectors when memory operations are performed in parallel using at least a portion of the vectors, and tracking positions in at least one of the vectors of any detected conflict between the memory addresses. Next, the processor executes the instructions for detecting the conflict between the memory addresses and tracking the positions.

Description

CROSS REFERENCE TO RELATED APPLICATIONS[0001]This application is a continuation-in-part of co-pending U.S. patent application Ser. No. 11 / 803,576, filed on May 14, 2007, entitled “Memory-Hazard Detection and Avoidance Instructions for Vector Processing,” (Attorney Docket No. APL-P4982US1) which is herein incorporated by reference. This application hereby claims priority under 35 U.S.C. § 120 to the above-listed parent patent application.[0002]This application is also related to co-pending U.S. patent application Ser. No. ______, filed on Jul. 11, 2008, entitled “Generating Stop Indicators During Vector Processing,” (Attorney Docket No. APL-P5452US2) and to co-pending U.S. patent application Ser. No. ______ filed on Jul. 11, 2008, entitled “Generating Predicate Values During Vector Processing,” (Attorney Docket No. APL-P5452US3) each of which are herein incorporated by reference.BACKGROUND[0003]1. Field of the Invention[0004]The present invention relates to techniques for improving c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/28G06F9/34G06F12/00G06F9/312
CPCG06F9/30072G06F9/30076G06F9/30094G06F9/3834G06F9/3838G06F8/454G06F9/3855G06F9/3856
Inventor GONION, JEFFRY E.DIEFENDORFF, KEITH E.
Owner APPLE INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products