Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make definition of control hazard more correct. #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/english/hpc/pipelining/hazards.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ There are multiple ways this may happen:

* A *structural hazard* happens when two or more instructions need the same part of CPU (e.g., an execution unit).
* A *data hazard* happens when you have to wait for an operand to be computed from some previous step.
* A *control hazard* happens when a CPU can't tell which instructions it needs to execute next.
* A *control hazard* (or *branch hazard*) happens when a CPU mispredicts a branch and brings into the pipeline instructions that must be later discarded.

The only way to resolve a hazard is to have a *pipeline stall*: stop the progress of all previous steps until the cause of congestion is gone. This creates *bubbles* in the pipeline — analogous with air bubbles in fluid pipes — a time-propagating condition when execution units are idling and no useful work is done.

Expand Down