�����Topic:- Parallel Processing
Submitted By:-Dr.(Mrs)Sangeeta Arora
Department:-Computer Science & IT
Aim & objective:��To make students understand the basic structure and operation of digital computer.��Learn the concepts of parallel processing, pipelining.�Understand the architecture and functionality of central processing unit��Discuss about different types of peripheral devices of computer�Learn the different types of serial communication techniques.�Explain different pipelining processes.�
Introduction
Why Parallel Architecture?
Parallel Processing
CPU, the next instruction can be read frommemory.
classesofpotentialsoftwarebugs,ofwhichraceconditionsarethemostcommon.
Advantages of Parallel Computing over Serial Computing are as follows:
Types of Parallelism:
Example: Consider a scenario where an 8-bit processor must compute the sum of two 16-bit integers. It must first sum up the 8 lower-order bits, then add the 8
higher-order bits, thus requiring two instructions to perform the operation. A 16- bit processor can perform the operation with just oneinstruction.
grouped which are later on executed concurrently without affecting the result of the program. This is called instruction-levelparallelism.
subtasks and then allocating each of the subtasks for execution. The processors perform execution of sub tasksconcurrently.
Architectural Trends
FLYNN‘S CLASSIFICATION
u
SISD
An SISD computing system is a uniprocessor machine which is capable of executing a single instruction, perating on a single datastream.
data to be processed have to be stored in primary memory.
Dominant representative SISD systems are IBM PC,workstations.
SIMD
MISD
An MISD computing system is a multiprocessor machinecapable
of executing
different instructions on dataset .
different PEs but all of them operating on the same
m
d
m
h
Each PE in the MIMD model has separate instruction and data strea machines built usingthis odel are capable to any kind ofapplication.
work
Unlike SIMD and MISD machines, PEs in MIMD mac ines
MIMD
asynchronously.
MIMD machines arebroa
s; therefore
ly categorized into
and
based on the way PEs are coupled to the main memory.
In the shared memory MIMD model (tightly coupled multiprocessor systems), all the PEs are connected to a single global memory and they all have access to it. The communication between PEs in this model takes place through the shared memory, modification of the data stored in the global memory by one PE is visible to all other PEs. Dominant representative shared memory MIMD systems are Silicon Graphics machines and Sun/IBM’s SMP (SymmetricMulti-Processing).
In Distributed memory MIMD machines (loosely coupled multiprocessor systems) all PEs have a local memory. The communication between PEs in this model takes place through the interconnection network (the inter process communication channel, or IPC). The network connecting PEs can be configured to tree, mesh or in accordance with therequirement.
VECTORARCHITECTURES
is obtained through a single CPU, but it allows a programmer to design and develop applications as a set of programs that can virtually execute in parallel: namely,threads.
HARDWARE MULTITHREADING
Multithreading
(threads) and can be executed in parallel is calledmultithreading.
Hardware Multithreading
Thread
Thread Switch
Process
Types of Multi-threading
Coarse-grained Multithreading
A version of hardware multithreading that implies switching between threads only after significant events, such as a last-level cachemiss.
is much less likely to slow down the execution of an individual thread, since instructions from other threads will only be issued when a thread encounters a costlystall.
Advantage
Disadvantage
negligible compared to the stalltime.
Fine-grained Multithreading
To make fine-grained multithreading practical, the processor must be able to switch threads on every clockcycle.
Advantage
Disadvantage
Simultaneous multithreading (SMT)
multiple-issue, dynamically scheduled pipelined processor to exploit thread- level parallelism at the same time it exploitsinstruction level parallelism.
Since SMT relies on the existing dynamic mechanisms, it does not switch resources every cycle.
Advantage
functional
Disadvantage
It cannot improve performance if any of the shared resources are the limiting bottlenecks for theperformance.
MULTICORE AND OTHER SHARED MEMORYMULTIPROCESSORS
Multiprocessor: A computer system with at least two processors
The conventional multiprocessor system used iscommonly referred as shared memory multiprocessorsystem.
programmer a single is physical address space across all processors which case nearly always the for multicorechips.
Shared Memory Multiprocessor System.[Tightly coupled processor]
throughput is high as compared to loosely coupledsystems
Uniform memory access (UMA) multiprocessors
uniformly shared by all
processors in multiprocessor systems and each processor has equal access time to sharedmemory.
Physical memory uniformly shared by all processors, with equal access time to all words.
fashion.
Symmetric:
devices. All processors are identical.
Asymmetric:
processors may be of different types and may be dedicated to specialtasks.
Non Uniform Memory Access (NUMA) multiprocessors
to the localmemory.
Distributed Memory (NUMA)
Here all the distributed memories are converted to cachememories.
Distributed Memory [Loosely Coupled Systems]
down the execution ofinstructions.
Therefore, these systems are also called multi-computersystems.
These computer systems are connected together via message passing
passing
interconnection network through which processes communicate by messages to oneanother.
Since every computer system or node inmulticomputersystemshasa
separate
memory, they are called distributed multicomputer systems. These are also called loosely coupledsystems.
GPU (Graphics Processing Unit)
card or in the motherboard of a personal computer orserver.
GPU vs. CPU
processing architecture, which allows it to perform multiple calculations at the sametime.
A CPU also has ahigh calculation faster than a computing tasks.
How a GPU works
e
e
g
CPU and GPUarchitectur
threads can be much higher than the number of cores.
r clock speed, meaning it can perform an individual
GPU so it is often better equippedto handle basic
s are also differentiated by the number of core .
The core is essentially the processor within theprocessor. MostCPUshavebetweenfourandeightcores,thoughsomehaveupto32cores. Each core can process its own tasks, orthreads.
Because some processors have multithreading capability -- inwhic h the core is dividedvirtually,allowin asinglecoretoprocesstwothreads--thenumberof
independent
power of the GPU to boost performance. This is known as "heterogeneous" or "hybrid"computing.
This massively parallel architecture is what gives the GPU its high compute performance.
There are a number of GPU-accelerated applications that provide an easy way to access high-performance computing(HPC).
CLUSTER SYSTEM
A diagram to better illustrate this is:
The clustered systems are a combination of hardware clusters and software clusters. The hardware clusters help in sharing of high performance disks between the systems. The software clusters makes all the systems work together.
Each node in the clustered systems contains the cluster software. This software monitors the cluster system and makes sure it is working as required. If any one of the nodes in the clustered system fail, then the rest of the nodes take control of its storage and resources and try torestart.
Types of Clustered Systems
– Parallel filesystems
– Oracle parallelserver
WSC
are different fromdatacenters.
Message Passing Multiprocessor
Communicating between multiple processors by explicitly sending and receiving information.
Send messageroutine: A routine used by a processor in machines with
private memories to pass a message to anotherprocessor.
�����THANK YOU!