COMP 4800: Introduction to Parallel Programming

This course will be of interest to students who want to explore the fundamental aspects of programming for parallel architectures. Almost all modern computers contain multiple processing units, since individual processors have effectively reached peak performance.

Prerequisites:  COMP 2001, COMP 2004

Availability: This course is intended to be offered once per year. 

Course Objectives

This course will focus on the considerations and challenges of writing parallel programs, particularly for multicore processors and graphics processing units.

Representative Workload
  • Assignments 50%
  • In-class Exam 20%
  • Final Exam 30%
Representative Course Outline
  • • Introduction (1 hour)
    • “Why parallel?”, concurrent vs parallel programming, Moore’s Law
  • Types of parallelism (1 hour)
    • task, data, instruction and thread-level parallelism, Flynn’s taxonomy
  • Shared-memory programming (2 hours)
    • Threaded programming, explicit and implicit thread control, trivially parallel algorithms
  • Explicit threading (4 hours)
  • Synchronization (2 hours)
    • race conditions, mutual exclusion, deadlocks, livelocks, starvation, atomicity
  • Synchronization design patterns (3 hours)
    • divide and conquer, locks, critical sections, semaphores
  • Work sharing and load balancing (3 hours)
    • data distribution, interleaving, task distribution, task time estimation
  • Performance and scaling (2 hours)
    • efficiency, speedup, Amdahl’s Law, weak scaling, strong scaling, compute vs memory bound computation
  • Implicit threading (4 hours)
    • OpenMP
  • Memory hierarchy (2 hours)
    • cache coherency, memory optimization, multi-core processors, hyper-threading
  • Vectorization (3 hours)
    • single instruction, multiple data, AVX instruction set
  • Graphics processing units (2 hours)
    • GPU architecture, memory hierarchy
  • CUDA (4 hours)
    • data transfer, threads, blocks, single instruction multiple thread
Note
  • This course is credit restricted with ECE7400, so students cannot gain credit for both.