Docsity

Parallel Computing: Understanding the Concept, Benefits, and Terminology - Prof. Mary Kath, Study notes of Statistics

Toggle sidebar
bg1
1
22S:166
Parallel computing
Lecture 27 Nov. 21, 2008
Kate Cowles
374 SH
2
What is Parallel Computing?
Traditionally, software has been written for serial compu-
tation:
•To be run on a single computer having a single Central
Processing Unit (CPU);
•A problem is broken into a discrete series of instruc-
tions.
•Instructions are executed one after another.
•Only one instruction may execute at any moment in
time.
3
Parallel computing
•In the simplest sense, parallel computing is the simul-
taneous use of multiple compute resources to solve a
computational problem.
–To be run using multiple CPUs
–A problem is broken into discrete parts that can
be solved concurrently
–Each part is further broken down to a series of
instructions
–Instructions from each part execute simultaneously
on different CPUs
•The compute resources can include:
–A single computer with multiple processors;
–An arbitrary number of computers connected by a
network;
–A combination of both.
4
•The computational problem usually demonstrates char-
acteristics such as the ability to be:
–Broken apart into discrete pieces of work that can
be solved simultaneously;
–Execute multiple program instructions at any mo-
ment in time;
–Solved in less time with multiple compute resources
than with a single compute resource.
•Traditionally, parallel computing has been considered
to be ”the high end of computing” and has been mo-
tivated by numerical simulations of complex systems
and ”Grand Challenge Problems” such as:
–weather and climate
–chemical and nuclear reactions
–biological, human genome
–geological, seismic activity
–mechanical devices - from prosthetics to spacecraft
–electronic circuits
–manufacturing processes
pf3

Partial preview of the text

Download Parallel Computing: Understanding the Concept, Benefits, and Terminology - Prof. Mary Kath and more Study notes Statistics in PDF only on Docsity!

22S:

Parallel computing

Lecture 27 Nov. 21, 2008

Kate Cowles 374 SH [email protected]

What is Parallel Computing?

Traditionally, software has been written for serial compu- tation:

  • To be run on a single computer having a single Central Processing Unit (CPU);
  • A problem is broken into a discrete series of instruc- tions.
  • Instructions are executed one after another.
  • Only one instruction may execute at any moment in time.

3

Parallel computing

  • In the simplest sense, parallel computing is the simul- taneous use of multiple compute resources to solve a computational problem. - To be run using multiple CPUs - A problem is broken into discrete parts that can be solved concurrently - Each part is further broken down to a series of instructions - Instructions from each part execute simultaneously on different CPUs
  • The compute resources can include:
    • A single computer with multiple processors;
    • An arbitrary number of computers connected by a network;
    • A combination of both.

4

  • The computational problem usually demonstrates char- acteristics such as the ability to be: - Broken apart into discrete pieces of work that can be solved simultaneously; - Execute multiple program instructions at any mo- ment in time; - Solved in less time with multiple compute resources than with a single compute resource.
  • Traditionally, parallel computing has been considered to be ”the high end of computing” and has been mo- tivated by numerical simulations of complex systems and ”Grand Challenge Problems” such as: - weather and climate - chemical and nuclear reactions - biological, human genome - geological, seismic activity - mechanical devices - from prosthetics to spacecraft - electronic circuits - manufacturing processes

Commercial applications are providing an equal or greater driving force in the development of faster computers

  • parallel databases, data mining
  • oil exploration
  • web search engines, web based business services
  • computer-aided diagnosis in medicine
  • management of national and multi-national corpora- tions
  • advanced graphics and virtual reality, particularly in the entertainment industry
  • networked video and multi-media technologies
  • collaborative work environments

Why Use Parallel Computing?

  • The primary reasons for using parallel computing:
    • Save time - wall clock time
    • Solve larger problems
    • Provide concurrency (do multiple things at the same time)
  • Other reasons might include:
    • Taking advantage of non-local resources - using available compute resources on a wide area net- work, or even the Internet when local compute re- sources are scarce.
    • Cost savings - using multiple ”cheap” computing resources instead of paying for time on a super- computer.
    • Overcoming memory constraints - single comput- ers have very finite memory resources. For large problems, using the memories of multiple comput- ers may overcome this obstacle.

7

General terminology in Parallel Computing

  • Task: A logically discrete section of computational work. A task is typically a program or program-like set of instructions that is executed by a processor.
  • Parallel Task: A task that can be executed by multiple processors safely (yields correct results)
  • Serial Execution: Execution of a program sequen- tially, one statement at a time. In the simplest sense, this is what happens on a one processor machine. However, virtually all parallel tasks will have sections of a parallel program that must be executed serially.
  • Parallel Execution: Execution of a program by more than one task, with each task being able to execute the same or different statement at the same moment in time.
  • Shared Memory: From a strictly hardware point of view, describes a computer architecture where all pro- cessors have direct (usually bus based) access to com- mon physical memory. In a programming sense, it describes a model where parallel tasks all have the same ”picture” of memory and can directly address and access the same logical memory locations regard- less of where the physical memory actually exists.

8

  • Distributed Memory: In hardware, refers to network based memory access for physical memory that is not common. As a programming model, tasks can only logically ”see” local machine memory and must use communications to access memory on other machines where other tasks are executing.
  • Communications Parallel tasks typically need to ex- change data. There are several ways this can be ac- complished, such as through a shared memory bus or over a network, however the actual event of data exchange is commonly referred to as communications regardless of the method employed.
  • Synchronization The coordination of parallel tasks in real time, very often associated with communications. Often implemented by establishing a synchronization point within an application where a task may not pro- ceed further until another task(s) reaches the same or logically equivalent point. Synchronization usually involves waiting by at least one task, and can therefore cause a parallel applica- tion’s wall clock execution time to increase.