Introduction to Parallel Programming with C and MPI at MCSR Part 2 BroadcastReduce - PowerPoint PPT Presentation

Loading...

PPT – Introduction to Parallel Programming with C and MPI at MCSR Part 2 BroadcastReduce PowerPoint presentation | free to download - id: 13bb33-MjZiM



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

Introduction to Parallel Programming with C and MPI at MCSR Part 2 BroadcastReduce

Description:

Introduction to. Parallel Programming. with C and MPI at MCSR. Part 2. Broadcast/Reduce ... Broadcast. Sends a message from one to all processes in the group. Scatter ... – PowerPoint PPT presentation

Number of Views:103
Avg rating:3.0/5.0
Slides: 20
Provided by: jason45
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: Introduction to Parallel Programming with C and MPI at MCSR Part 2 BroadcastReduce


1
Introduction to Parallel Programming with C and
MPI at MCSRPart 2Broadcast/Reduce
2
Collective Message Passing
  • Broadcast
  • Sends a message from one to all processes in the
    group
  • Scatter
  • Distributes each element of a data array to a
    different process for computation
  • Gather
  • The reverse of scatterretrieves data elements
    into an array from multiple processes

3
Collective Message Passing w/MPI
  • MPI_Bcast() Broadcast from root to all other
    processes
  • MPI_Gather() Gather values for group of
    processes
  • MPI_Scatter() Scatters buffer in parts to group
    of processes
  • MPI_Alltoall() Sends data from all processes to
    all processes
  • MPI_Reduce() Combine values on all processes to
    single val
  • MPI_Reduce_Scatter() Broadcast from root to all
    other processes
  • MPI_Bcast() Broadcast from root to all other
    processes

4
Log in to mimosa get workshop files
  • A. Use secure shell to login to mimosa using your
    assigned training account
  • ssh tracct1_at_mimosa.mcsr.olemiss.edussh
    tracct2_at_mimosa.mcsr.olemiss.edu
  • See lab instructor for password.

B. Copy workshop files into your home directory
by running /usr/local/apps/ppro/prepare_mpi_work
shop
5
Examine, compile, and execute add_mpi.c
6
Examine, compile, and execute add_mpi.c
7
Examine, compile, and execute add_mpi.c
8
Examine, compile, and execute add_mpi.c
9
Examine, compile, and execute add_mpi.c
10
Examine, compile, and execute add_mpi.c
11
Examine add_mpi.pbs
12
Submit PBS Script add_mpi.pbs
13
Examine Output and Errors add_mpi.c
14
Determine Speedup
15
Determine Parallel Efficiency
16
How Could Speedup/Efficiency Improve?
17
What Happens to ResultsWhen MAXSIZE NotEvenly
Divisible by n?
18
Exercise 1Change Code to Work When MAXSIZE is
Not EvenlyDivisible by n
19
Exercise 2Change Code to Improve Speedup
About PowerShow.com