On Monday July 6th, the nanoHUB will be intermittently unavailable due to scheduled maintenance. All tool sessions will be shut down early in the morning. Home directories and tools will be unavailable most of the day. We apologize for any inconvenience this may cause. close


Support Options

Submit a Support Ticket


Illinois ECE 498AL: Programming Massively Parallel Processors, Lecture 10: Control Flow

By Wen-Mei W Hwu

University of Illinois at Urbana-Champaign

Published on


Control Flow


  • Terminology Review
  • How Thread Blocks are Partitioned
  • Control Flow Instructions
  • Parallel Reduction
  • A Vector Reduction Example
  • A simple Implementation
  • Vector Reduction With Bank Conflicts
  • Vector Reduction With Branch Divergence
  • Predicted Execution Concept
  • Instruction Prediction in G80


These lecture were breezed by Carl Pearson and Daniel Borup and then reviewed, edited ,and Uploaded by Omar Sobh.

Sponsored by


Cite this work

Researchers should cite this work as follows:

  • Wen-Mei W Hwu (2009), "Illinois ECE 498AL: Programming Massively Parallel Processors, Lecture 10: Control Flow," http://nanohub.org/resources/7304.

    BibTex | EndNote


nanoHUB.org, a resource for nanoscience and nanotechnology, is supported by the National Science Foundation and other funding agencies. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.