Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Loading...
User Settings
close menu
Welcome to Scribd!
Upload
Read for free
FAQ and support
Language (EN)
Sign in
0 ratings
0% found this document useful (0 votes)
166 views
ParallelProgramminginCwithMPIandOpenMP PDF
Uploaded by
Ermin Sehic
AI-enhanced
Copyright:
© All Rights Reserved
Available Formats
Download
as PDF or read online from Scribd
Download
Save
Save ParallelProgramminginCwithMPIandOpenMP.pdf For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
ParallelProgramminginCwithMPIandOpenMP PDF
Uploaded by
Ermin Sehic
0 ratings
0% found this document useful (0 votes)
166 views
272 pages
AI-enhanced title
Document Information
click to expand document information
Original Title
ParallelProgramminginCwithMPIandOpenMP.pdf
Copyright
© © All Rights Reserved
Available Formats
PDF or read online from Scribd
Share this document
Share or Embed Document
Sharing Options
Share on Facebook, opens a new window
Facebook
Share on Twitter, opens a new window
Twitter
Share on LinkedIn, opens a new window
LinkedIn
Share with Email, opens mail client
Email
Copy link
Copy link
Did you find this document useful?
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Is this content inappropriate?
Report
Copyright:
© All Rights Reserved
Available Formats
Download
as PDF or read online from Scribd
Download now
Download as pdf
Save
Save ParallelProgramminginCwithMPIandOpenMP.pdf For Later
0 ratings
0% found this document useful (0 votes)
166 views
272 pages
ParallelProgramminginCwithMPIandOpenMP PDF
Uploaded by
Ermin Sehic
AI-enhanced title
Copyright:
© All Rights Reserved
Available Formats
Download
as PDF or read online from Scribd
Save
Save ParallelProgramminginCwithMPIandOpenMP.pdf For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download as pdf
Jump to Page
You are on page 1
of 272
Search inside document
PERFORMANCE ANALYSIS FORMULAS Amdanrs Law Let f be the fraction of operations in a computation that must be performed sequentially, where 0 = f = |. The maximum speedup y achievable by a parallel ‘computer with p processors performing the computation is, t ¥<550-Pip Gustafson-Barsis’s Law Given a parallel program solving a problem of size m using p processors, lets denote the fraction of total execution time spent in serial code, The maximum speedup Y- achievable by this program is vsp+(—ps Karp-Fiatt Metric Given parallel computation exhibiting speedup yon p processors, where p > 1, the experimentally determined serial fraction e is defined to be Isoefficiency Relation ‘Suppose a parallel system exhibits efficiency e(n, ), where n denotes problem size and p denotes numberof processors. Define C= «(n,p)/(1~e(n, p)).Let Tin, 1) denote sequential execution time, and let T(r, p) denote putllel over- head (total amount of time spent by all processors performing communications seb rednsant compiatatons}, in odes to maintain the same level of efficiency as the number of processors increases. problem size must be increased so thatthe following inequality is satisied Ton, 1) > CTIn, p) Parallel Programming in C with MPI and OpenMP Michael J. Quinn Oregon State University ee Higher Education Boston Burr Ridge, IL Dubuque, |A Madison, Wi New York San Fanelsca St.Louis Bangkok Bogotd Caracas Kuala Lumpur Liston London Madtid Mexico Cty Milan Montreal New Delhi Santiago Seoul Singapore Sydney Talpe! Torontoon PARALLEL PROGRAMMING IN C WITH MPL AND OPENMP Intemational Eon 2003 Exclusive rights by McGraw-Hill Esai (Asa) or manufacture an exon. This ‘ook cannot be reexpre fom te county to which ts ol by Metra Hl. THE Ineratonl Eien eno wail in Now Amen, Published by McGaw» business nit of The MGraw-Hil Companies, I, 121 [Avent ofthe Americas, Nbw Yor, 10. Copyipn © 2008 The Mera A ‘Compares, ie Alas eerved, No pat ofthis piation may be reproduced or Sinubated in any frm orby any means, o ore ins databate or eal syer sett he pir writen consent of The MeCaw- 48 Compaen, Dat ‘ot mite fn ay network or ber lene rage or raaision, or read oe Some ances: infding fetonc an ring component ayn be availble ‘tnlomers oud the Uae Sates, 10 09 08 OF 06 05 04 09 O22 20.08 08 07 06 O5 08 05 cr ste Library of Cor Quinn, tae chal ty Pall programing it with MPL and OpenMP / Michel J. Quinn —Iste Pom (SBN opr 2822562 1€ (Computer program language) 2. Paral pogramming (Computer cence) ie, ars 7secisass 2008 cos. 15'3aeat 2oenos63 cae ee 182, ‘When ordering this tite se ISBN 0071232656 ss Cataloging in-Publicatlon Data Prine Singapore eeanhhe com N 53478/18.5.06 With gratitude for their love, support, and guidance, | dedicate this book to my parents, award and Georgla Quinn,w Conteris Coreen, “i 263° Miso 55 39 KeyTerms 90 SAS Ramifiaions of Block cnarten? ded wien 5 310 Bibliographic Notes 90 Decomposition 121 Fartariaanen aaeresee ss 27° Summary 58 BAL Exercises 90 58 Developing the Parallel Algorithm 121 28 KeyTerms 59 S51 Funcion wer Beast 122 JA Introduction 159 29° Bibliographic Nowes 59 56 Analysis of Paral! Sive Algorithm 122 7-2 Speedupand ficiency 159 210 Exercises 60 amceae 5.7 Documenting the Parallel Program 9237-3 Amdahi's Law 161 Message-Passing Programming 93 58 Benchmarking 128 731 Linaion of Auda's Law 164 441 Insoduction 95 59° Improvements 129 732 The Adah et 164 cuarrenS 42 The Message Passing Model 98 5B Delete Even Integers 129 74 Gastaion-Barsis's Law 164 Paraliel Algorithm Design 63 43 The Message Pusing Interface 95 492 Eliminate Broadeast 130 75 The Karp-Fat Metic 167 31 Invoduetion 63 44 Cire Saisabilty 96 593 Reorgoize Loops 13 746 The sefiieney Metric 170 32 The Task/Chanvel Model 63 “a S94 Bencharting 131 77 Summary 174 33. Foster's Design Methodology 64 442 Pancions WPE_Conm_saniand 520 Summary 133 78 KeyTems 175 BBL Paroning 68 Sut KeyTerms 134 19 Bibliographic Notes 175 ! 332° Communication 67 443 5:12 Bibliographic Notes 134 TAO Execcses 176 | i 33.3 Agglomeration 68 444 Compiling MPI Programs 102 S43. Exercises 134 a4 Maoping 7D 44S Runsing MPT Programs 102 a nroducng Colleive ce ee “S Somme 08 cuarten Matrix-Vector Multiplication 175, Bat tnraision 72, ane e 451 Povcion MPL_Rosuce 108 Floyd's Algorithm 137 81 Induction 178 asec at 46 Benchmarking Pale Performance 108 ae 82 Sequenat Algorithm 179 dake Agslomeration nd Moping 75 $61 Pinon Yer Mt ne od 62 The AlLParsShonest Path 83 Data Decomposition Options 150 ' BAS Anat 75 hy Problem 137 £4 Rowwise Block-Stiped 33° Finding the Maximum 77 eee 6.3 Creating Arrays at Run Time 139 Decomposition 181 47° Summary 110 ASL Inroducton 77 64 Designing the Pale! Algorithm 140 SAL Design and Anais 18) 382° Parinoniny 77 Cie 641 Porttioning 40 442 Replcang«Bloc-Mepped Vector 183 453° Commanicaton 77 49° Bibtioprphie Nowes 110 642 Communication 141 B43 Function NPI_ALigacherv 184 BSA Aaslomerton ad Mapping 81 440 Exercises 111 643 Aeglomeation and Mapping 142 8d Replcted Vector IpalOupat 188 BSS Analysis #2 etd Mass aowOupur 43 AAS Documenting the Paral! Program 187 36 The mBody Problem 82 cuarren S 65 Pointto-Point Communication 145 46 Benchmarting 187 461 traduction 82 681 Fancion #O2_Send 6 85 Columawise Block Str 342 Ponte 8 UO i G2 Fincroneztece tt Desomston 13 365 Communication 83 54 Introduction 115 653 Deadlock 18 851 Designand Anas 189 “243 Atglomeraionand Mapping 8S ———'52._—-Sequential Algorithm 115 66 —Documeating the Paaet 152 Reading c Columavise Blok Siped 36S Analysis 85 $3 Sources of Parallelism 117 Program 149 Matrix 191 1 37 Adding Data Input 86 54 Data Decomposition Options $1 67 Analysis and Benchmarking 151 883° Function NPI_Scatvory 191 | pri eater Sel hieterd Dut Drempostion 178 68 Summary tS4 BSE Pring Colman Bk Spd | 372° Communication &7 $42 Blok Date Decomposition 18 69 Key Tems 154 Marie 198 473° Anabsis 88 $43 Block Decomposition Mocs 120 610 Bibliographic Notss 154 855° Foon ues _catmers 198 38 Summary 59 S44 Local Indes vers Global Ines 120 G11 Exercises 154 456 Distributing Paria Rents 195
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
Rating: 4 out of 5 stars
4/5 (5978)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
Rating: 4 out of 5 stars
4/5 (622)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brené Brown
Rating: 4 out of 5 stars
4/5 (1110)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
Rating: 4.5 out of 5 stars
4.5/5 (893)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
Rating: 4.5 out of 5 stars
4.5/5 (1737)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
Rating: 4 out of 5 stars
4/5 (1217)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
Rating: 4 out of 5 stars
4/5 (932)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
Rating: 4 out of 5 stars
4/5 (619)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
Rating: 4.5 out of 5 stars
4.5/5 (2119)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
Rating: 4.5 out of 5 stars
4.5/5 (545)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
Rating: 4.5 out of 5 stars
4.5/5 (356)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
Rating: 4 out of 5 stars
4/5 (831)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
Rating: 4.5 out of 5 stars
4.5/5 (476)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
Rating: 4 out of 5 stars
4/5 (1058)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
Rating: 4.5 out of 5 stars
4.5/5 (275)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
Rating: 4.5 out of 5 stars
4.5/5 (814)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
Rating: 4.5 out of 5 stars
4.5/5 (443)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
Rating: 4 out of 5 stars
4/5 (1953)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
Rating: 3.5 out of 5 stars
3.5/5 (2029)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
Rating: 3.5 out of 5 stars
3.5/5 (424)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
Rating: 3.5 out of 5 stars
3.5/5 (2272)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
Rating: 4.5 out of 5 stars
4.5/5 (4851)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
Rating: 4 out of 5 stars
4/5 (99)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
Rating: 4.5 out of 5 stars
4.5/5 (270)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
Rating: 4.5 out of 5 stars
4.5/5 (125)
Yes Please
From Everand
Yes Please
Amy Poehler
Rating: 4 out of 5 stars
4/5 (1941)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
Rating: 4 out of 5 stars
4/5 (4255)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
Rating: 4.5 out of 5 stars
4.5/5 (1934)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
Rating: 4.5 out of 5 stars
4.5/5 (235)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
Rating: 3.5 out of 5 stars
3.5/5 (2587)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
Rating: 3.5 out of 5 stars
3.5/5 (232)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
Rating: 3.5 out of 5 stars
3.5/5 (805)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
Rating: 4 out of 5 stars
4/5 (4042)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
Rating: 4 out of 5 stars
4/5 (75)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
Rating: 3.5 out of 5 stars
3.5/5 (139)
John Adams
From Everand
John Adams
David McCullough
Rating: 4.5 out of 5 stars
4.5/5 (2411)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
Rating: 3.5 out of 5 stars
3.5/5 (883)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
Rating: 3.5 out of 5 stars
3.5/5 (108)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
Rating: 4 out of 5 stars
4/5 (45)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M.L. Stedman
Rating: 4.5 out of 5 stars
4.5/5 (789)
User Interface Design: Definitions, Processes and Principles
Document
66 pages
User Interface Design: Definitions, Processes and Principles
Ermin Sehic
No ratings yet
Seth 740 Fall13 Module3.5 Main Memory Part1
Document
69 pages
Seth 740 Fall13 Module3.5 Main Memory Part1
Ermin Sehic
No ratings yet
Typesofmemory Updated
Document
8 pages
Typesofmemory Updated
Ermin Sehic
No ratings yet
Computer Memory
Document
12 pages
Computer Memory
Ermin Sehic
100% (1)
Computer Memory Applications and Management
Document
11 pages
Computer Memory Applications and Management
Ermin Sehic
No ratings yet
IPTV-Internet Protocol Televsion: December 2011
Document
62 pages
IPTV-Internet Protocol Televsion: December 2011
Ermin Sehic
No ratings yet
Tutorial On IPTV and Its Latest Developments: January 2011
Document
7 pages
Tutorial On IPTV and Its Latest Developments: January 2011
Ermin Sehic
No ratings yet
Intro Parallel Programming 2015
Document
38 pages
Intro Parallel Programming 2015
Ermin Sehic
No ratings yet
E-Mail Security: Issues and Solutions
Document
5 pages
E-Mail Security: Issues and Solutions
Ermin Sehic
No ratings yet
DHCP Handbook 2ed 2003 en
Document
11 pages
DHCP Handbook 2ed 2003 en
Ermin Sehic
No ratings yet
Little Women
From Everand
Little Women
Louisa May Alcott
Rating: 4 out of 5 stars
4/5 (105)