Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CS 181E Resource Site: Fundamentals of Parallel Programming (Fall

...

Instructor:

...

Prof. Vivek Sarkar, Sprague Hall 414

...

Grutors:

...

Matt Prince

...

Co-instructor:

...

Prof. Ran Libeskind-Hadas

...

Mary Rachel Stimson

...

Habanero Research Staff:

...

Vincent Cavé, Shams Imam

...

 

...

 

...

Lectures:

...

2012

...

Lecture times:

...

MWF 1:00 - 1:50pm

...

Labs:

...

Ryon 102

...

Lab times:

...

Tuesday, 4:00 - 5:20pm (Section 3)

...

 

...

 

...

 

...

Wednesday, 3:30 - 4:50pm (Section 2)

...

 

...

 

...

 

...

Thursday, 4:00 - 5:20pm (Section 1)

Introduction

The goal of COMP 322 is to introduce you to the fundamentals of parallel programming and parallel algorithms, using a pedagogical approach that exposes you to the intellectual challenges in parallel software without enmeshing you in low-level details of different parallel systems.  To that end, the main pre-requisite course requirement is COMP 215 or equivalent.  This course should be accessible to anyone familiar with the foundations of sequential algorithms and data structures, and with basic Java programming.  COMP 221 is also recommended as a co-requisite.

The pedagogical approach will introduce you to the following foundations of parallel programming:

  • Primitive constructs for task creation & termination, collective & point-to-point synchronization, task and data distribution, and data parallelism
  • Abstract models of parallel computations and computation graphs
  • Parallel algorithms and data structures including lists, strings, trees, graphs, matrices
  • Common parallel programming patterns including task parallelism, undirected and directed synchronization, data parallelism, divide-and-conquer parallelism, map-reduce, concurrent event processing including graphical user interfaces. 

Laboratory assignments will explore these topics through a simple parallel extension to the Java language called Habanero-Java (HJ), developed in the Habanero Multicore Software Research project at Rice University.  The use of Java will be confined to a subset of the Java 1.4 language that should also be accessible to C programmers --- no advanced Java features (e.g., generics) will be used.  An abstract performance model for HJ programs will be available to aid you in complexity analysis of parallel programs before you embark on performance evaluations on real parallel machines.  We will conclude the course by introducing you to some real-world parallel programming models including the Java Concurrency Utilities, Google's MapReduce, CUDA and MPI.  The foundations gained in this course will prepare you for advanced courses on Parallel Computing offered at Rice (COMP 422, COMP 522). 
 
Since the aim of the course is for you to gain both theoretical and practical knowledge of the foundations of parallel programming, the weightage for course work will be balanced across homeworks, exams, and lab attendance.  

Textbooks

There are no required textbooks for the class. You will be expected to read each lecture handout before coming to the lecture.  We will also provide a number of references in the slides and handouts.

However, there are a few optional textbooks that we will draw from quite heavily.  You are encouraged to get copies of any or all of these books.  They will serve as useful references both during and after this course:

...

)

Introduction

This web site contains resources for the Fall 2012 offering of CS 181E at Harvey Mudd COllege.  For general information on the course, please go to the course home page.

 

...

Lecture Schedule

 

Day

Date (2012)

Topic

Slides

Audio (Panopto)

Code Examples

Homework Assigned

Homework Due

1

Wed

Sep 05

Lecture 1: The What and Why of Parallel Programming

lec1-slides

 

ArraySum0.hj

HW1 (Written Assignment)

 

2

Mon

Sep 10

Lecture 2: Async-Finish Parallel Programming and Computation Graphs

lec2-slides

lec2-audio

PrimeSieve.hj

 

 

3

Wed

Sep 12

Lecture 3: Computation Graphs, Abstract Performance Metrics, Array Reductions

lec3-slides

lec3-audio

ArraySum1.hj

HW2 (HJ Programming Assignment)

HW1

4

Mon

Sep 17

School Holiday

 

 

 

 

 

5

Wed

Sep 19

Lecture 4: Parallel Speedup, Efficiency, Amdahl's Law

lec4-slides

lec4-audio

 

 

 

6

Mon

Sep 24

Lecture 5: Data & Control Flow with Async Tasks, Data Races

lec5-slides

lec5-audio

(See Lab 3)

 

 

7

Wed

Sep 26

Lecture 6: Memory Models, Atomic Variables

lec6-slides

lec6-audio

(See Lab 3)

 

 

8

Mon

Oct 01

Lecture 7: Memory Models (contd), Futures --- Tasks with Return Values

lec7-slides

lec7-audio

ArraySum2.hj

 

 

9

Wed

Oct 03

Lecture 8: Futures (contd), Dataflow Programming, Data-Driven Tasks

lec8-slides

lec8-audio

binarytrees.hj

 

 

10

Mon

Oct 08

Lecture 9: Abstract vs. Real Performance, seq clause, forasync loops

lec9-slides

lec9-audio

nqueens.hj

 

HW2

11

Wed

Oct 10

Lecture 10: Forasync Chunking, Parallel Prefix Sum algorithm

lec10-slides

lec10-audio

 

 

 

12

Mon

Oct 15

Lecture 11: Parallel Prefix Sum (contd), Parallel Quicksort

lec11-slides

lec11-audio

 

HW3 (HJ Programming Assignment)SeqScoring.hjX.txtY.txtBigSeq.zip

 

13

Wed

Oct 17

Lecture 12: Finish Accumulators, Forall Loops and Barrier Synchronization

lec12-slides

lec12-audio

 

 

 

14

Mon

Oct 22

Lecture 13: Forall Loops and Barrier Synchronization (contd)

lec13-slides

lec13-audio

 

 

 

15

Wed

Oct 24

Lecture 14: Point-to-point Synchronization and Phasers

lec14-slides

lec14-audio

 

 

 

16

Mon

Oct 29

Lecture 15: Phaser Accumulators, Bounded Phasers

lec15-slides

lec15-audio

 

 

 

17

Wed

Oct 31

Lecture 16: Summary of Barriers and Phasers

lec16-slides

lec16-audio

 

 

 

18

Mon

Nov 05

Lecture 17: Task Affinity with Places

lec17-slides

lec17-audio

 

 

 

19

Wed

Nov 07

Lecture 18: Task Affinity with Places (contd)

lec18-slides

lec18-audio

 

 

 

20

Mon

Nov 12

Lecture 19: Midterm Summary

lec19-slides

 

 

 

 

21

Wed

Nov 14

Lecture 20: Critical sections and the Isolated statement

lec20-slides

lec20-audio

 

 

 

22

Mon

Nov 19

Lecture 21: Isolated statement (contd), Monitors, Actors

lec21-slides

lec21-audio

 

HW4 (HJ Programming Assignment), hw_4.zip

 

23

Wed

Nov 21

Lecture 22: Actors (contd)

lec22-slides

lec22-audio

HJ Actor Examples

 

 

24

Mon

Nov 26

Lecture 23: Linearizability of Concurrent Objects

lec23-slides

lec23-audio

 

 

 

25

Wed

Nov 28

Lecture 24: Linearizability of Concurrent Objects (contd)

lec24-slides

lec24-audio

 

 

 

26

Mon

Mar 16

Lecture 25: Safety and Liveness Properties

lec25-slides

lec25-audio

 

 

 

27

Wed

Mar 19

Lecture 26: Parallel Programming Patterns

lec26-slides

lec26-audio

 

 

 

28

Mon

Mar 21

Lecture 27: Introduction to Java Threads

lec27-slides

lec27-audio

 

HW5 (Written Assignment) --- HW5.pdf or HW5.doc

HW4

29

Wed

Mar 26

Lecture 28: Bitonic Sort (guest lecture by Prof. John Mellor-Crummey)

lec28-slides

 

 

 

 

30

Mon

Mar 28

Lecture 29: Java Threads (contd), Java synchronized statement

lec29-slides

lec29-audio

 

 

 

31

Wed

Mar 30

Lecture 30: Java synchronized statement (contd), advanced locking

lec30-slides

lec30-audio

 

 

 

32

Mon

Apr 02

Lecture 31: Java Executors and Synchronizers

lec31-slides

lec31-audio

 

 

 

33

Wed

Apr 04

Lecture 32: Volatile Variables and Java Memory Model

lec32-slides

lec32-audio

 

 

 

34

Mon

Apr 06

Lecture 33: Message Passing Interface (MPI)

lec33-slides

lec33-audio

 

 

HW5

35

Wed

Apr 09

Lecture 34: Message Passing Interface (MPI, contd)

lec34-slides

lec34-audio

 

HW6 (Java Programming Assignment) , hw_6.zip

 

36

Mon

Apr 11

Lecture 35: Cloud Computing, Map Reduce

lec35-slides

lec35-audio

 

 

 

37

Wed

Apr 13

Lecture 36: Map Reduce (contd)

lec36-slides

lec36-audio

 

 

 

38

Mon

Apr 16

Lecture 37: Speculative parallelization of isolated blocks (Guest lecture by Prof. Swarat Chaudhuri)

lec37-slides

 

 

 

 

39

Wed

Apr 18

Lecture 38: Comparison of Parallel Programming Models

lec38-slides

lec38-audio

 

 

 

40

Mon

Apr 20

Lecture 39: Course Review

lec39-slides

lec39-audio

 

Exam 2 (Take-home)

HW6

...