Docsity

Midterm Study Guide for Systems Programming | CS 351, Exams of Computer Science

Toggle sidebar
bg1
CS 351 โ€“ Week 7 - Page 1
CS 351
Week 7
Reading:
The C Programming Language, Dennis M Ritchie, Kernighan, Brain .W
Objectives:
1.
To learn about Message Passing Libraries.
2. Midterm Exam on previous covered topics.
Concepts
:
1. Message Passing Libraries.
2. Overview of Lab
Outline:
1. Message Passing Libraries.
2. Midterm Exam.
3. Lab Exercise.
Reference:
1. Programming for windows by Charles Petzold.
pf3
pf4

Partial preview of the text

Download Midterm Study Guide for Systems Programming | CS 351 and more Exams Computer Science in PDF only on Docsity!

CS 351

Week 7

Reading:

The C Programming Language, Dennis M Ritchie, Kernighan, Brain .W

Objectives:

1. To learn about Message Passing Libraries.

  1. Midterm Exam on previous covered topics.

Concepts:

1. Message Passing Libraries.

2. Overview of Lab

Outline:

1. Message Passing Libraries.

  1. Midterm Exam.
  2. Lab Exercise.

Reference:

  1. Programming for windows by Charles Petzold.

CS 351: Week 7 โ€“ Lecture Notes

Message Passing Libraries:-

A. Terminology:

  • Buffering Temporary copying of messages performed by system as a part of its transmission protocols.
  • Blocking Communication A communication routine is blocking if the completion of the call is dependent on certain "events".
  • Nonblocking Communication A communication routine is nonblocking if the call returns without waiting for any communications events to complete

B. Point-to-Point Communication:

The basic send and receive operations look like:

send(address, length, destination, tag) receive (address, max_length, source, tag, rec_length) where

  • address = memory location of the beginning of the buffer containing the data to be sent or received
  • length = length in bytes of message being sent
  • max_length = length of the buffer into which received data is placed
  • rec_length = number of bytes of data actually received

C. Collective Communication Collective operations are coordinated among a "group" of processes

  • Library routines are used to construct a group from a subset of processes
  • Collective operations are blocking
  • Three types of collective operations o Synchronization - processes wait until all members of the group have reached the synchronization point o Data movement  broadcast  scatter/gather  all to all

CS 351: Week 7 โ€“ Lecture Notes

Lab Exercises:

o Exercise 1:

Construct an MPI implementation of the parallel/transpose and parallel/pipeline

convolution algorithms

o Exercise 2:

Develop a variant of Program that implements the nine-point finite difference

stencil.