Chun-Yuan Lin OpenMP-Programming training-5. “Type 2” Pipeline Space-Time Diagram.

Slides:



Advertisements
Similar presentations
The Integers Multiplication Algorithm. Elementary Facts Playing the MathGym-1D game you have seen three important facts: The product of two positive numbers.
Advertisements

Allows you to update your name, address and other contact information Allows you to change your user ID Allows you to change your password Displays.
Sorting algorithms Sieve of Eratosthenes
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
1 5.1 Pipelined Computations. 2 Problem divided into a series of tasks that have to be completed one after the other (the basis of sequential programming).
1 5.1 Pipelined Computations. 2 Problem divided into a series of tasks that have to be completed one after the other (the basis of sequential programming).
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
Prime Number Sieve
Do Now 11/30/09 Copy HW in your planner. Copy HW in your planner. –Text page 175, #16-44 multiples of 4; #48-54 evens Be ready to copy POTW #3 Be ready.
Parallel Programming in C with MPI and OpenMP
Lists Samuel Marateck © The Sieve of Eratosthenes.
CSE5304—Project Proposal Parallel Matrix Multiplication Tian Mi.
Comp 205: Comparative Programming Languages Lazy Evaluation and Infinite Lists Lecture notes, exercises, etc., can be found at:
Pipelined Computations Divide a problem into a series of tasks A processor completes a task sequentially and pipes the results to the next processor Pipelining.
Factorization and Primality Pure mathematics is, in its way, the poetry of logical ideas. ~Albert Einstein.
Chapter 4 Number Theory. Terms Factors Divides, divisible, divisibility Multiple.
COMPE575 Parallel & Cluster Computing 5.1 Pipelined Computations Chapter 5.
1.7 Arrays academy.zariba.com 1. Lecture Content 1.Basic Operations with Arrays 2.Console Input & Output of Arrays 3.Iterating Over Arrays 4.List 5.Cloning.
Ravid Rodney Or Maltabashi Outlines What is Fractal? History Fractal dimension Box Counting Method Fractal dimension Calculations:
SMART Agency Tipsheet Staff List This document focuses on setting up and maintaining program staff. Total Pages: 14 Staff Profile Staff Address Staff Assignment.
Chun-Yuan Lin CUDA-Programming training-7. 向量加法 1BMT (6) 再次修改 使用一個區塊 使用 256 個執行緒 2.
Prime Numbers Eratosthenes’(ehr-uh-TAHS-thuh-neez) Sieve
5.1 Divisibility. Natural Numbers The set of natural numbers or counting numbers is {1,2,3,4,5,6,…}
Functions CS 103 March 3, Review A function is a set of code we can execute on command to perform a specific task A function is a set of code we.
Functions CS 103. Review A function is a set of code we can execute on command to perform a specific task When we call a function, we can pass arguments.
Parallelization of ‘Sieve of Eratosthenes’ Algorithm
Sieve of Eratosthenes by Fola Olagbemi. Outline What is the sieve of Eratosthenes? Algorithm used Parallelizing the algorithm Data decomposition options.
Sieve of Eratosthenes. The Sieve of Eratosthenes is a method that.
MathXL ® for School Teacher Training Series Creating Homework Assignments.
Archiving is downloading, keeping and protecting s that you are receiving or sending so they can be accessed at another time. Archiving.
Sequences & Series. Sequences  A sequence is a function whose domain is the set of all positive integers.  The first term of a sequences is denoted.
Decomposition Data Decomposition – Dividing the data into subgroups and assigning each piece to different processors – Example: Embarrassingly parallel.
UNIT-I INTRODUCTION ANALYSIS AND DESIGN OF ALGORITHMS CHAPTER 1:
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming in C with MPI and OpenMP Michael J. Quinn.
Fractions.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
Saving & Submitting Your VB Projects 1. 2 Click Tools and then click Options Setting Default Project Folder.
DIGITAL SIGNATURE(DS) IN VIDEO. Contents  What is Digital Signature(DS)?  General Signature Vs. Digital Signatures  How DS is Different from Encryption?
Multiples, Factors and Prime Numbers!. Multiples - Any number has a set of multiples. When a number is multiplied by any whole number (integer) the result.
Lecture 3: Today’s topics MPI Broadcast (Quinn Chapter 5) –Sieve of Eratosthenes MPI Send and Receive calls (Quinn Chapter 6) –Floyd’s algorithm Other.
Number and Numerical Operations. Real Numbers Rational Numbers -Can be written as a fraction. -In decimal form, either terminates or repeats Examples:
GP-ZIP Genetic Programing File Compression By: Dj Gerena.
Chun-Yuan Lin MPI-Programming training-1. Broadcast Sending same message to all processes concerned with problem. Multicast - sending same message to.
Sieve of Eratosthenes Quiz questions ITCS4145/5145, Parallel Programming Oct 24, 2013.
EVEN NUMBERS EVEN NUMBERS 1 = prime 2 = prime1 3 = prime 4 = 2 x 22 5 = prime 6 = 2 x 33 7 = prime 8 = 2 x 2 x 24 9 = 3 x 3 10 = 2 x 55.
The title of the paper Another info.
Sieve of Eratosthenes.
Using The Sieve of Eratosthenes
Sieve of Eratosthenes.
Pipelined Computations
Website: Contact No: ID:
CS4230 Parallel Programming Lecture 12: More Task Parallelism Mary Hall October 4, /04/2012 CS4230.
Multiplying Integers.
(Clickers & computer – Online Book)
Repetition and Loops while do while for continue break
Pipelined Computations
Real Numbers COURSE 3 CHAPTER 4 1. yes 2. no 3. yes
Pipeline Pattern ITCS 4/5145 Parallel Computing, UNC-Charlotte, B. Wilkinson, 2012 slides5.ppt Oct 24, 2013.
Pipelined Pattern This pattern is implemented in Seeds, see
Pipeline Pattern ITCS 4/5145 Parallel Computing, UNC-Charlotte, B. Wilkinson, 2012 slides5.ppt March 20, 2014.
Pipeline Pattern ITCS 4/5145 Parallel Computing, UNC-Charlotte, B. Wilkinson slides5.ppt August 17, 2014.
LIBRARY SERVICES HCDSB EDUCATIONAL RESOURCE CENTRE
Number Systems Instructions, Compression & Truth Tables.
Project and Assignment Submission
Topic 25 - more array algorithms
HCF & LCM – Prime Factorisation – Demonstration
Lowest Common Multiples – Prime Factorisation – Demonstration
Presentation transcript:

Chun-Yuan Lin OpenMP-Programming training-5

“Type 2” Pipeline Space-Time Diagram

Prime Number Generation Sieve of Eratosthenes Series of all integers generated from 2. First number, 2, is prime and kept. All multiples of this number deleted as they cannot be prime. Process repeated with each remaining number. The algorithm removes non-primes, leaving only primes. Type 2 pipeline computation

Training Please write an OpenMP program to find all prime numbers less than 100,000,000. Please compare the OpenMP program with your previous MPI program in terms of time and speedup ratio.

Please send the code of this training and the word file with the speedup ratio to my . (before 5/22, 23:59). Please annotate your name and your student ID in . The file name is “student ID”. If more than one file, the names are “student ID-1”, “student ID-2”, etc. Please compress the files to a.zip or.rar file. The file name is “student ID-train5”. For example, a student has ID “A ” and two files. The file names are A c and A c and the compressed file name is A train5.zip. The file will be rejected without following the rules.