Scalable Problems and Memory-Bounded Speedup

Total Page:16

File Type:pdf, Size:1020Kb

Scalable Problems and Memory-Bounded Speedup Scalable Problems and MemoryBounded Sp eedup XianHe Sun ICASE Mail Stop C NASA Langley Research Center Hampton VA sunicaseedu Abstract In this pap er three mo dels of parallel sp eedup are studied They are xedsize speedup xedtime speedup and memorybounded speedup The latter two consider the relationship b etween sp eedup and problem scalability Two sets of sp eedup formulations are derived for these three mo dels One set considers uneven workload allo cation and communication overhead and gives more accurate estimation Another set considers a simplied case and provides a clear picture on the impact of the sequential p ortion of an application on the p ossible p erformance gain from parallel pro cessing The simplied xedsize sp eedup is Amdahls law The simplied xedtime sp eedup is Gustafsons scaled speedup The simplied memoryb ounded sp eedup contains b oth Amdahls law and Gustafsons scaled sp eedup as sp ecial cases This study leads to a b etter under standing of parallel pro cessing Running Head Scalable Problems and MemoryBounded Sp eedup This research was supp orted in part by the NSF grant ECS and by the National Aeronautics and Space Administration under NASA contract NAS SCALABLE PROBLEMS AND MEMORYBOUNDED SPEEDUP By XianHe Sun ICASE NASA Langley Research Center Hampton VA sunicaseedu And Lionel M Ni Computer Science Department Michigan State University E Lansing MI nicpsmsuedu Intro duction Although parallel pro cessing has b ecome a common approach for achieving high p erformance there is no wellestablished metric to measure the p erformance gain of parallel pro cessing The most commonly used p erformance metric for parallel pro cessing is speedup which gives the p erformance gain of parallel pro cessing versus sequential pro cessing Traditionally sp eedup is dened as the ratio of unipro cessor execution time to execution time on a parallel pro cessor There are dierent ways to dene the metric execution time In xedsize speedup the amount of work to b e executed is indep endent of the numb er of pro cessors Based on this mo del Ware summarized Amdahls arguments to dene a sp eedup formula which is known as Amdahls law However in many applications the amount of work to b e p erformed increases as the numb er of pro cessors increases in order to obtain a more accurate or b etter result The concept of scaled speedup was prop osed by Gustafson et al at Sandia National Lab oratory Based on this concept Gustafson suggested a xedtime speedup which xes the execution time and is interested in how the problem size can b e scaled up In scaled sp eedup b oth sequential and parallel execution times are measured based on the same amount of work dened by the scaled problem Both Amdahls law and Gustafsons scaled sp eedup use a single parameter the sequential p ortion of a parallel algorithm to characterize an application They are simple and give much insight into the p otential degradation of parallelism as more pro cessors b ecome available Amdahls law has a xed problem size and is interested in how small the resp onse time could b e It suggests that massively parallel pro cessing may not gain high sp eedup Gustafson approaches the problem from another p oint of view He xes the resp onse time and is interested in how large a problem could b e solved within this time This pap er further investigates the scalability of problems While Gustafsons scalable problems are constrained by the execution time the capacity of main memory is also a critical metric For parallel computers esp ecially for distributedmemory multipro cessors the size of scalable problems is often determined by the memory available Shortage of memory is paid for in problem solution time due to the IO or messagepassing delays and in programmer time due to the additional co ding required to multiplex the distributed memory For many applications the amount of memory is an imp ortant constraint to scaling problem size Thus memorybounded speedup is the ma jor fo cus of this pap er We rst study three mo dels of sp eedup xedsize speedup xedtime speedup and memory bounded speedup With b oth uneven workload allo cation and communication overhead considered sp eedup formulations will b e derived for all three mo dels When communication overhead is not considered and the workload only consists of sequential and p erfectly parallel p ortions the simplied xedsize sp eedup is Amdahls law the simplied xedtime sp eedup is Gustafsons scaled sp eedup and the simplied memoryb ounded sp eedup contains b oth Amdahls law and Gustafsons sp eedup as sp ecial cases Therefore the three mo dels of sp eedup which represent dierent p oints of view are unied Based on the concept of scaled sp eedup intensive research has b een conducted in recent years in the area of p erformance evaluation Some other denitions of sp eedup have also b een prop osed such as generalized sp eedup costrelated sp eedup and sup erlinear sp eedup Interested readers can refer to for details This pap er is organized as follows In Section we intro duce the program mo del and some basic terminologies More generalized sp eedup formulations for the three mo dels of sp eedup are presented in Section Sp eedup formulations for simplied cases are studied in Section The inuence of communicationmemory tradeo is studied in Section Conclusions and comments are given in Section A Mo del of Parallel Sp eedup To measure dierent sp eedup metrics for scalable problems the underlying machine is assumed to b e a scalable multiprocessor A multipro cessor is considered scalable if as the numb er of pro cessors increase the memory capacity and network bandwidth also increase Furthermore all pro cessors are assumed to b e homogeneous Most distributedmemory multipro cessors and multicomputers such as commercial hyp ercub e and meshconnected computers are scalable multipro cessors Both messagepassing and sharedmemory programming paradigms have b een used in such multipro ces sors To simplify the discussion our study assumes homogeneous distributedmemory architectures The parallelism in an application can b e characterized in dierent ways for dierent purp oses For simplicity sp eedup formulations generally use very few parameters and consider very high level characterizations of the parallelism We consider two main degradations of parallelism uneven al location load imbalance and communication latency The former degradation is application dep endent The latter degradation dep ends on b oth the application and the parallel computer under consideration To obtain an accurate estimate b oth degradations need to b e considered Uneven allo cation is measured by degree of paral lelism Denition The degree of parallelism of a program is an integer which indicates the maximum number of processors that can be busy computing at a particular instant in time given an unbounded number of available processors The degree of parallelism is a function of time By drawing the degree of parallelism over the execution time of an application a graph can b e obtained We refer to this graph as the paral lelism prole Figure is the parallelism prole of a hyp othetical divideandconque r computation By accumulating the time sp ent at each degree of parallelism the prole can b e rearranged to form the shape see Figure of the application 6 Degree of Parallelism - T Time Figure Parallelism prole of an application Let W b e the amount of work of an application Work can b e dened as arithmetic op erations instructions or whatever is needed to complete the application Formally the sp eedup with N pro cessors and with the total amount of work W is dened as T W 1 S W N T W N where T W is the time required to complete W amount of work on i pro cessors Let W b e i i the amount of work executed with degree of parallelism i and let m b e the maximum degree of P m parallelism Thus W W Assuming each computation takes a constant time to nish on i i=1 a given pro cessor the execution time for computing W with a single pro cessor is i W i t W 1 i where is the computing capacity of each pro cessor If there are i pro cessors available the execution time is W i t W i i i With an innite numb er of pro cessors available the execution time will not b e further decreased and is 6 Degree of Parallelism - - - - - t t t t 4 3 2 1 Figure Shap e of the application W i for i m t W 1 i i Therefore without considering communication latency the execution times on a single pro cessor and on an innite numb er of pro cessors are m X W i T W 1 i=1 m X W i T W 1 i i=1 The maximum sp eedup with work W and an innite numb er of pro cessors is P P m W i m T W W i=1 1 i 4 i=1 P S W P 1 m m W i W i T W i 1 i=1 i=1 i4 Average parallelism is an imp ortant factor for sp eedup and eciency It has b een carefully examined in Average parallelism is equivalent to the maximum sp eedup S S 1 1 gives the b est p ossible sp eedup based on the inherent parallelism of an algorithm There are no machine dep endent factors considered With only a limited numb er of available pro cessors and with communication latency considered the sp eedup will b e less than the b est sp eedup S W 1 W i i If there are N pro cessors available and N i then some pro cessors have to do d e work and i N W i i b c work By the denition of degree of parallelism W and the rest of the pro cessors will do i i N W cannot b e executed simultaneously for i j Thus the elapsed time will b e j i W i d e t W N i i N Hence m X W i i T W d e N i N i=1 and the sp eedup is
Recommended publications
  • Scalable and Distributed Deep Learning (DL): Co-Design MPI Runtimes and DL Frameworks
    Scalable and Distributed Deep Learning (DL): Co-Design MPI Runtimes and DL Frameworks OSU Booth Talk (SC ’19) Ammar Ahmad Awan [email protected] Network Based Computing Laboratory Dept. of Computer Science and Engineering The Ohio State University Agenda • Introduction – Deep Learning Trends – CPUs and GPUs for Deep Learning – Message Passing Interface (MPI) • Research Challenges: Exploiting HPC for Deep Learning • Proposed Solutions • Conclusion Network Based Computing Laboratory OSU Booth - SC ‘18 High-Performance Deep Learning 2 Understanding the Deep Learning Resurgence • Deep Learning (DL) is a sub-set of Machine Learning (ML) – Perhaps, the most revolutionary subset! Deep Machine – Feature extraction vs. hand-crafted Learning Learning features AI Examples: • Deep Learning Examples: Logistic Regression – A renewed interest and a lot of hype! MLPs, DNNs, – Key success: Deep Neural Networks (DNNs) – Everything was there since the late 80s except the “computability of DNNs” Adopted from: http://www.deeplearningbook.org/contents/intro.html Network Based Computing Laboratory OSU Booth - SC ‘18 High-Performance Deep Learning 3 AlexNet Deep Learning in the Many-core Era 10000 8000 • Modern and efficient hardware enabled 6000 – Computability of DNNs – impossible in the 4000 ~500X in 5 years 2000 past! Minutesto Train – GPUs – at the core of DNN training 0 2 GTX 580 DGX-2 – CPUs – catching up fast • Availability of Datasets – MNIST, CIFAR10, ImageNet, and more… • Excellent Accuracy for many application areas – Vision, Machine Translation, and
    [Show full text]
  • Parallel Programming
    Parallel Programming Parallel Programming Parallel Computing Hardware Shared memory: multiple cpus are attached to the BUS all processors share the same primary memory the same memory address on different CPU’s refer to the same memory location CPU-to-memory connection becomes a bottleneck: shared memory computers cannot scale very well Parallel Programming Parallel Computing Hardware Distributed memory: each processor has its own private memory computational tasks can only operate on local data infinite available memory through adding nodes requires more difficult programming Parallel Programming OpenMP versus MPI OpenMP (Open Multi-Processing): easy to use; loop-level parallelism non-loop-level parallelism is more difficult limited to shared memory computers cannot handle very large problems MPI(Message Passing Interface): require low-level programming; more difficult programming scalable cost/size can handle very large problems Parallel Programming MPI Distributed memory: Each processor can access only the instructions/data stored in its own memory. The machine has an interconnection network that supports passing messages between processors. A user specifies a number of concurrent processes when program begins. Every process executes the same program, though theflow of execution may depend on the processors unique ID number (e.g. “if (my id == 0) then ”). ··· Each process performs computations on its local variables, then communicates with other processes (repeat), to eventually achieve the computed result. In this model, processors pass messages both to send/receive information, and to synchronize with one another. Parallel Programming Introduction to MPI Communicators and Groups: MPI uses objects called communicators and groups to define which collection of processes may communicate with each other.
    [Show full text]
  • Parallel Computer Architecture
    Parallel Computer Architecture Introduction to Parallel Computing CIS 410/510 Department of Computer and Information Science Lecture 2 – Parallel Architecture Outline q Parallel architecture types q Instruction-level parallelism q Vector processing q SIMD q Shared memory ❍ Memory organization: UMA, NUMA ❍ Coherency: CC-UMA, CC-NUMA q Interconnection networks q Distributed memory q Clusters q Clusters of SMPs q Heterogeneous clusters of SMPs Introduction to Parallel Computing, University of Oregon, IPCC Lecture 2 – Parallel Architecture 2 Parallel Architecture Types • Uniprocessor • Shared Memory – Scalar processor Multiprocessor (SMP) processor – Shared memory address space – Bus-based memory system memory processor … processor – Vector processor bus processor vector memory memory – Interconnection network – Single Instruction Multiple processor … processor Data (SIMD) network processor … … memory memory Introduction to Parallel Computing, University of Oregon, IPCC Lecture 2 – Parallel Architecture 3 Parallel Architecture Types (2) • Distributed Memory • Cluster of SMPs Multiprocessor – Shared memory addressing – Message passing within SMP node between nodes – Message passing between SMP memory memory nodes … M M processor processor … … P … P P P interconnec2on network network interface interconnec2on network processor processor … P … P P … P memory memory … M M – Massively Parallel Processor (MPP) – Can also be regarded as MPP if • Many, many processors processor number is large Introduction to Parallel Computing, University of Oregon,
    [Show full text]
  • Parallel Programming Using Openmp Feb 2014
    OpenMP tutorial by Brent Swartz February 18, 2014 Room 575 Walter 1-4 P.M. © 2013 Regents of the University of Minnesota. All rights reserved. Outline • OpenMP Definition • MSI hardware Overview • Hyper-threading • Programming Models • OpenMP tutorial • Affinity • OpenMP 4.0 Support / Features • OpenMP Optimization Tips © 2013 Regents of the University of Minnesota. All rights reserved. OpenMP Definition The OpenMP Application Program Interface (API) is a multi-platform shared-memory parallel programming model for the C, C++ and Fortran programming languages. Further information can be found at http://www.openmp.org/ © 2013 Regents of the University of Minnesota. All rights reserved. OpenMP Definition Jointly defined by a group of major computer hardware and software vendors and the user community, OpenMP is a portable, scalable model that gives shared-memory parallel programmers a simple and flexible interface for developing parallel applications for platforms ranging from multicore systems and SMPs, to embedded systems. © 2013 Regents of the University of Minnesota. All rights reserved. MSI Hardware • MSI hardware is described here: https://www.msi.umn.edu/hpc © 2013 Regents of the University of Minnesota. All rights reserved. MSI Hardware The number of cores per node varies with the type of Xeon on that node. We define: MAXCORES=number of cores/node, e.g. Nehalem=8, Westmere=12, SandyBridge=16, IvyBridge=20. © 2013 Regents of the University of Minnesota. All rights reserved. MSI Hardware Since MAXCORES will not vary within the PBS job (the itasca queues are split by Xeon type), you can determine this at the start of the job (in bash): MAXCORES=`grep "core id" /proc/cpuinfo | wc -l` © 2013 Regents of the University of Minnesota.
    [Show full text]
  • Enabling Efficient Use of UPC and Openshmem PGAS Models on GPU Clusters
    Enabling Efficient Use of UPC and OpenSHMEM PGAS Models on GPU Clusters Presented at GTC ’15 Presented by Dhabaleswar K. (DK) Panda The Ohio State University E-mail: [email protected] hCp://www.cse.ohio-state.edu/~panda Accelerator Era GTC ’15 • Accelerators are becominG common in hiGh-end system architectures Top 100 – Nov 2014 (28% use Accelerators) 57% use NVIDIA GPUs 57% 28% • IncreasinG number of workloads are beinG ported to take advantage of NVIDIA GPUs • As they scale to larGe GPU clusters with hiGh compute density – hiGher the synchronizaon and communicaon overheads – hiGher the penalty • CriPcal to minimize these overheads to achieve maximum performance 3 Parallel ProGramminG Models Overview GTC ’15 P1 P2 P3 P1 P2 P3 P1 P2 P3 LoGical shared memory Shared Memory Memory Memory Memory Memory Memory Memory Shared Memory Model Distributed Memory Model ParPPoned Global Address Space (PGAS) DSM MPI (Message PassinG Interface) Global Arrays, UPC, Chapel, X10, CAF, … • ProGramminG models provide abstract machine models • Models can be mapped on different types of systems - e.G. Distributed Shared Memory (DSM), MPI within a node, etc. • Each model has strenGths and drawbacks - suite different problems or applicaons 4 Outline GTC ’15 • Overview of PGAS models (UPC and OpenSHMEM) • Limitaons in PGAS models for GPU compuPnG • Proposed DesiGns and Alternaves • Performance Evaluaon • ExploiPnG GPUDirect RDMA 5 ParPPoned Global Address Space (PGAS) Models GTC ’15 • PGAS models, an aracPve alternave to tradiPonal message passinG - Simple
    [Show full text]
  • An Overview of the PARADIGM Compiler for Distributed-Memory
    appeared in IEEE Computer, Volume 28, Number 10, October 1995 An Overview of the PARADIGM Compiler for DistributedMemory Multicomputers y Prithvira j Banerjee John A Chandy Manish Gupta Eugene W Ho dges IV John G Holm Antonio Lain Daniel J Palermo Shankar Ramaswamy Ernesto Su Center for Reliable and HighPerformance Computing University of Illinois at UrbanaChampaign W Main St Urbana IL Phone Fax banerjeecrhcuiucedu Abstract Distributedmemory multicomputers suchasthetheIntel Paragon the IBM SP and the Thinking Machines CM oer signicant advantages over sharedmemory multipro cessors in terms of cost and scalability Unfortunately extracting all the computational p ower from these machines requires users to write ecientsoftware for them which is a lab orious pro cess The PARADIGM compiler pro ject provides an automated means to parallelize programs written using a serial programming mo del for ecient execution on distributedmemory multicomput ers In addition to p erforming traditional compiler optimizations PARADIGM is unique in that it addresses many other issues within a unied platform automatic data distribution commu nication optimizations supp ort for irregular computations exploitation of functional and data parallelism and multithreaded execution This pap er describ es the techniques used and pro vides exp erimental evidence of their eectiveness on the Intel Paragon the IBM SP and the Thinking Machines CM Keywords compilers distributed memorymulticomputers parallelizing compilers parallel pro cessing This research was supp orted
    [Show full text]
  • Concepts from High-Performance Computing Lecture a - Overview of HPC Paradigms
    Concepts from High-Performance Computing Lecture A - Overview of HPC paradigms OBJECTIVE: The clock speeds of computer processors are topping out as the limits of traditional computer chip technology are being reached. Increased performance is being achieved by increasing the number of compute cores on a chip. In order to understand and take advantage of this disruptive technology, one must appreciate the paradigms of high-performance computing. The economics of technology Technology is governed by economics. The rate at which a computer processor can execute instructions (e.g., floating-point operations) is proportional to the frequency of its clock. However, 2 power ∼ (voltage) × (frequency), voltage ∼ frequency, 3 =⇒ power ∼ (frequency) e.g., a 50% increase in performance by increasing frequency requires 3.4 times more power. By going to 2 cores, this performance increase can be achieved with 16% less power1. 1This assumes you can make 100% use of each core. Moreover, transistors are getting so small that (undesirable) quantum effects (such as electron tunnelling) are becoming non-negligible. → Increasing frequency is no longer an option! When increasing frequency was possible, software got faster because hardware got faster. In the near future, the only software that will survive will be that which can take advantage of parallel processing. It is already difficult to do leading-edge computational science without parallel computing; this situation can only get worse. Computational scientists who ignore parallel computing do so at their own risk! Most of numerical analysis (and software in general) was designed for the serial processor. There is a lot of numerical analysis that needs to be revisited in this new world of computing.
    [Show full text]
  • In Reference to RPC: It's Time to Add Distributed Memory
    In Reference to RPC: It’s Time to Add Distributed Memory Stephanie Wang, Benjamin Hindman, Ion Stoica UC Berkeley ACM Reference Format: D (e.g., Apache Spark) F (e.g., Distributed TF) Stephanie Wang, Benjamin Hindman, Ion Stoica. 2021. In Refer- A B C i ii 1 2 3 ence to RPC: It’s Time to Add Distributed Memory. In Workshop RPC E on Hot Topics in Operating Systems (HotOS ’21), May 31-June 2, application 2021, Ann Arbor, MI, USA. ACM, New York, NY, USA, 8 pages. Figure 1: A single “application” actually consists of many https://doi.org/10.1145/3458336.3465302 components and distinct frameworks. With no shared address space, data (squares) must be copied between 1 Introduction different components. RPC has been remarkably successful. Most distributed ap- Load balancer Scheduler + Mem Mgt plications built today use an RPC runtime such as gRPC [3] Executors or Apache Thrift [2]. The key behind RPC’s success is the Servers request simple but powerful semantics of its programming model. client data request cache In particular, RPC has no shared state: arguments and return Distributed object store values are passed by value between processes, meaning that (a) (b) they must be copied into the request or reply. Thus, argu- ments and return values are inherently immutable. These Figure 2: Logical RPC architecture: (a) today, and (b) with a shared address space and automatic memory management. simple semantics facilitate highly efficient and reliable imple- mentations, as no distributed coordination is required, while then return a reference, i.e., some metadata that acts as a remaining useful for a general set of distributed applications.
    [Show full text]
  • Parallel Breadth-First Search on Distributed Memory Systems
    Parallel Breadth-First Search on Distributed Memory Systems Aydın Buluç Kamesh Madduri Computational Research Division Lawrence Berkeley National Laboratory Berkeley, CA {ABuluc, KMadduri}@lbl.gov ABSTRACT tions, in these graphs. To cater to the graph-theoretic anal- Data-intensive, graph-based computations are pervasive in yses demands of emerging \big data" applications, it is es- several scientific applications, and are known to to be quite sential that we speed up the underlying graph problems on challenging to implement on distributed memory systems. current parallel systems. In this work, we explore the design space of parallel algo- We study the problem of traversing large graphs in this rithms for Breadth-First Search (BFS), a key subroutine in paper. A traversal refers to a systematic method of explor- several graph algorithms. We present two highly-tuned par- ing all the vertices and edges in a graph. The ordering of allel approaches for BFS on large parallel systems: a level- vertices using a \breadth-first" search (BFS) is of particular synchronous strategy that relies on a simple vertex-based interest in many graph problems. Theoretical analysis in the partitioning of the graph, and a two-dimensional sparse ma- random access machine (RAM) model of computation indi- trix partitioning-based approach that mitigates parallel com- cates that the computational work performed by an efficient munication overhead. For both approaches, we also present BFS algorithm would scale linearly with the number of ver- hybrid versions with intra-node multithreading. Our novel tices and edges, and there are several well-known serial and hybrid two-dimensional algorithm reduces communication parallel BFS algorithms (discussed in Section2).
    [Show full text]
  • Introduction to Parallel Computing
    INTRODUCTION TO PARALLEL COMPUTING Plamen Krastev Office: 38 Oxford, Room 117 Email: [email protected] FAS Research Computing Harvard University OBJECTIVES: To introduce you to the basic concepts and ideas in parallel computing To familiarize you with the major programming models in parallel computing To provide you with with guidance for designing efficient parallel programs 2 OUTLINE: Introduction to Parallel Computing / High Performance Computing (HPC) Concepts and terminology Parallel programming models Parallelizing your programs Parallel examples 3 What is High Performance Computing? Pravetz 82 and 8M, Bulgarian Apple clones Image credit: flickr 4 What is High Performance Computing? Pravetz 82 and 8M, Bulgarian Apple clones Image credit: flickr 4 What is High Performance Computing? Odyssey supercomputer is the major computational resource of FAS RC: • 2,140 nodes / 60,000 cores • 14 petabytes of storage 5 What is High Performance Computing? Odyssey supercomputer is the major computational resource of FAS RC: • 2,140 nodes / 60,000 cores • 14 petabytes of storage Using the world’s fastest and largest computers to solve large and complex problems. 5 Serial Computation: Traditionally software has been written for serial computations: To be run on a single computer having a single Central Processing Unit (CPU) A problem is broken into a discrete set of instructions Instructions are executed one after another Only one instruction can be executed at any moment in time 6 Parallel Computing: In the simplest sense, parallel
    [Show full text]
  • Multi-Core Architectures
    Multi-core architectures Jernej Barbic 15-213, Spring 2007 May 3, 2007 1 Single-core computer 2 Single-core CPU chip the single core 3 Multi-core architectures • This lecture is about a new trend in computer architecture: Replicate multiple processor cores on a single die. Core 1 Core 2 Core 3 Core 4 Multi-core CPU chip 4 Multi-core CPU chip • The cores fit on a single processor socket • Also called CMP (Chip Multi-Processor) c c c c o o o o r r r r e e e e 1 2 3 4 5 The cores run in parallel thread 1 thread 2 thread 3 thread 4 c c c c o o o o r r r r e e e e 1 2 3 4 6 Within each core, threads are time-sliced (just like on a uniprocessor) several several several several threads threads threads threads c c c c o o o o r r r r e e e e 1 2 3 4 7 Interaction with the Operating System • OS perceives each core as a separate processor • OS scheduler maps threads/processes to different cores • Most major OS support multi-core today: Windows, Linux, Mac OS X, … 8 Why multi-core ? • Difficult to make single-core clock frequencies even higher • Deeply pipelined circuits: – heat problems – speed of light problems – difficult design and verification – large design teams necessary – server farms need expensive air-conditioning • Many new applications are multithreaded • General trend in computer architecture (shift towards more parallelism) 9 Instruction-level parallelism • Parallelism at the machine-instruction level • The processor can re-order, pipeline instructions, split them into microinstructions, do aggressive branch prediction, etc.
    [Show full text]
  • 14. Parallel Computing 14.1 Introduction 14.2 Independent
    14. Parallel Computing 14.1 Introduction This chapter describes approaches to problems to which multiple computing agents are applied simultaneously. By "parallel computing", we mean using several computing agents concurrently to achieve a common result. Another term used for this meaning is "concurrency". We will use the terms parallelism and concurrency synonymously in this book, although some authors differentiate them. Some of the issues to be addressed are: What is the role of parallelism in providing clear decomposition of problems into sub-problems? How is parallelism specified in computation? How is parallelism effected in computation? Is parallel processing worth the extra effort? 14.2 Independent Parallelism Undoubtedly the simplest form of parallelism entails computing with totally independent tasks, i.e. there is no need for these tasks to communicate. Imagine that there is a large field to be plowed. It takes a certain amount of time to plow the field with one tractor. If two equal tractors are available, along with equally capable personnel to man them, then the field can be plowed in about half the time. The field can be divided in half initially and each tractor given half the field to plow. One tractor doesn't get into another's way if they are plowing disjoint halves of the field. Thus they don't need to communicate. Note however that there is some initial overhead that was not present with the one-tractor model, namely the need to divide the field. This takes some measurements and might not be that trivial. In fact, if the field is relatively small, the time to do the divisions might be more than the time saved by the second tractor.
    [Show full text]