CS 100: Parallel Computing

Similar documents
Big Bang, Black Holes, No Math

STAT/SOC/CSSS 221 Statistical Concepts and Methods for the Social Sciences. Random Variables

ECE321 Electronics I

THE SUN, THE MOON AND OUR SOLAR SYSTEM TEACHER NOTES TO SHARE WITH STUDENTS

AST101: Our Corner of the Universe Take Home Lab: Observing the Moon and the Sun

*Karle Laska s Sections: There is no class tomorrow and Friday! Have a good weekend! Scores will be posted in Compass early Friday morning

Welcome to CSE21! Lecture B Miles Jones MWF 9-9:50pm PCYN 109. Lecture D Russell (Impagliazzo) MWF 4-4:50am Center 101

Floating Point Representation and Digital Logic. Lecture 11 CS301

Key Questions: Where are Alaska s volcanoes? How many volcanoes are found in Alaska?

LESSON PLAN OUTLINE JMU Elementary Education Program

How do we measure properties of a star? Today. Some Clicker Questions - #1. Some Clicker Questions - #1

Lecture 12: Energy and Power. James C. Hoe Department of ECE Carnegie Mellon University

Lecture 2: Metrics to Evaluate Systems

Fall 2017 Math 108 Week Week 1 Task List

Timing Constraints in Sequential Designs. 63 Sources: TSR, Katz, Boriello & Vahid

Relationships Between Quantities

Module 3 - Expressions & Equations Unit 5 Packet 2 - Solving Equations & Inequalities

Parallel Program Performance Analysis

Big Bang, Black Holes, No Math

High-Performance Scientific Computing

From Niels Bohr to Quantum Computing - from philosophical struggle to technological revolution

Grades 7 & 8, Math Circles 10/11/12 October, Series & Polygonal Numbers

Introduction to Logarithms

CS 700: Quantitative Methods & Experimental Design in Computer Science

Astronomy 150: Killer Skies. Lecture 20, March 7

Student Questionnaire (s) Main Survey

Voting Systems. High School Circle II. June 4, 2017

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

What s the longest single-shot exposure ever recorded of any object or area of space by Hubble?

MICROPROCESSOR REPORT. THE INSIDER S GUIDE TO MICROPROCESSOR HARDWARE

MAT points Impact on Course Grade: approximately 10%

Lecture 4: Technology Scaling

ASTR/PHYS 109 Dr. David Toback Lectures 22 & 23

Amdahl's Law. Execution time new = ((1 f) + f/s) Execution time. S. Then:

Number of People Contacted

Jr. Meteorologist Club

Chapter 2 Describing Change: Rates

CprE 281: Digital Logic

The remains of the course

Isotopes and Atomic Mass

3.2 Probability Rules

CMP 338: Third Class

Ch1 Algebra and functions. Ch 2 Sine and Cosine rule. Ch 10 Integration. Ch 9. Ch 3 Exponentials and Logarithms. Trigonometric.

Grade 4 supplement. Set D8 Measurement: Temperature. Includes. Skills & Concepts

5E Lesson Plan Template

Introduction to Algorithms March 10, 2010 Massachusetts Institute of Technology Spring 2010 Professors Piotr Indyk and David Karger Quiz 1

Announcements. There is no homework next week. Tuesday s sections (right after the midterm) will be cancelled.

Project Instructions Please Read Thoroughly!

Midterm review session tomorrow 4:15 EEB125 Midterm 2 in class (45min long, starts at 10:35am) Today Abi bigger example: Hungry Robot Ant in Maze

Human Population Dynamics CAPT Embedded Task

MITOCW MITRES18_005S10_DiffEqnsGrowth_300k_512kb-mp4

Post Von Neumann Computing

BeiHang Short Course, Part 7: HW Acceleration: It s about Performance, Energy and Power

Last few slides from last time

Simple Interactions CS 105 Lecture 2 Jan 26. Matthew Stone

Student s guide CESAR Science Case Rotation period of the Sun and the sunspot activity

CprE 281: Digital Logic

GRADE 1 SUPPLEMENT. Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern. Includes. Skills & Concepts. November Calendar Pattern C3.

GRADE 1 SUPPLEMENT. Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern. Includes. Skills & Concepts. November Calendar Pattern C3.

Life of a Star. Lesson development

Big Bang, Black Holes, No Math

ASTR1120L & 2030L Introduction to Astronomical Observations Fall 2018

CSE373: Data Structures and Algorithms Lecture 2: Math Review; Algorithm Analysis. Hunter Zahn Summer 2016

Big Bang, Black Holes, No Math

Math 8 ALEKS Review B

CPSC 340: Machine Learning and Data Mining. Stochastic Gradient Fall 2017

GRADE 6: Earth and space 1. UNIT 6E.1 12 hours. The movement of the Earth and the Moon. Resources. About this unit. Previous learning.

Unit 4 Patterns and Algebra

Probability and Data Management AP Book 8, Part 2: Unit 2

CLICKERS!!!!! Multiply.

AP Human Geography. Course Materials

2-1 More on Solving Equations Wednesday, May 26, :22 PM

4.1 Implicit Differentiation

Physics 11 Reading Booklet

Week 6, 9/24/12-9/28/12, Notes: Bernoulli, Binomial, Hypergeometric, and Poisson Random Variables

Clicker Registration

Please bring the task to your first physics lesson and hand it to the teacher.

Write It! Students should be encouraged to do the Research and Explore station before attempting this one.

Astronomy 115: Stars, Galaxies & Cosmos

Astro 21 first lecture. stars are born but also helps us study how. Density increases in the center of the star. The core does change from hydrogen to

FTF Day 1. Feb 2, 2012 HW: Ch 3 Review Q s and Key Terms (Friday) Topic: Newton s 2 nd and 3 rd Laws Questions

Chemistry 11. First Assignment Scientific Notation

Announcements. Lecture 1 - Data and Data Summaries. Data. Numerical Data. all variables. continuous discrete. Homework 1 - Out 1/15, due 1/22

Mrs. Duddles Q1 - Chemistry

Mathematics Success Grade 8

Physics 218 Lecture 23

Eye on the Sky Summative Two Assessment

INPUT~ Explore It! Station Directions: This is one of the four INPUT stations. They may be completed in any order.

Lecture 27: Hardware Acceleration. James C. Hoe Department of ECE Carnegie Mellon University

ALGEBRA 1 FINAL EXAM 2006

PHY131H1F Class 5. Clicker Question

CS1210 Lecture 23 March 8, 2019

Thanks. You Might Also Like. I look forward helping you focus your instruction and save time prepping.

BROOMFIELD SCHOOL GCSE Physics Long Answer Exam Booklet

Astronomy 101 Lab: Stellarium Tutorial

Algebra 2/Trig: Chapter 15 Statistics In this unit, we will

Unit 7 Trigonometry Project Name Key Project Information

Linear Functions. Unit 3

5/3/17. Extinction of the Dinosaurs. Extinction of Dinosaurs - Causes. #40 Meteorite Impacts III - Dinosaur Extinction, Future Risk, Mitigation

RING DISCOVERED AROUND DWARF PLANET

Transcription:

CS 100: Parallel Computing Chris Kauffman Week 12

Logistics Upcoming HW 5: Due Friday by 11:59pm HW 6: Up by Early Next Week

Moore s Law: CPUs get faster Smaller transistors closer together Smaller transistors can "flip" faster More faster transistors on a chip more speed Processor speed doubles every 18 months

How Small are Transistors? Intel Core i7 uses a 32 nanometer process Distance between memory units in the processor is about 64 nanometers A hard sphere radius of a hydrogen Atom is about 0.11 nanometers About 591 atoms apart 22 nanometer processor is close

However... Source: Danowitz et al CPU speed isn t getting faster these days Fastest Dell Speed I found was 4.0 GhZ

Why The Slow Down Faster = Energy Changing bits faster requires energy, generates heat Faster processors suck down more power, get hotter Consider the data center: lots of CPUS stacked together get hot Google Me This How much energy total energy do datacenters consume? How many homes could you power with that amount of Source

Answer: The Cloud is Hungry US data centers consumed about 70 billion kilowatt-hours of electricity in 2014, the most recent year examined, representing 2 percent of the country s total energy consumption, according to the study. That s equivalent to the amount consumed by about 6.4 million average American homes that year. This is a 4 percent increase in total data center energy consumption from 2010 to 2014, and a huge change from the preceding five years, during which total US data center energy consumption grew by 24 percent, and an even bigger change from the first half of last decade, when their energy consumption grew nearly 90 percent. Here s How Much Energy All US Data Centers Consume by Yevgeniy Sverdlik on June 27, 2016, datacenterknowledge.com

Consequences At least a dozen major data centers have been cited for violations of air quality regulations in Virginia and Illinois alone, according to state records. Amazon was cited with more than 24 violations over a three-year period in Northern Virginia, including running some of its generators without a basic environmental permit. Power, Pollution and the Internet, NYTimes by James Glanz, 9-22-2012

Today s Processors: Mini-Parallel Computer Multiple independent processors Can add 2 or 4 or 8 numbers independently Can actually run multiple programs simultaneously Allows multitasking Source: The death of CPU scaling: From one core to many

Can Humans Multi-task? A Canadian Study The students in the first experiment who were asked to multitask [during lecture] averaged 11 per cent lower on their quiz. The students in the second experiment who were surrounded by laptops scored 17 per cent lower. Laptop use lowers student grades, experiment shows, The Canadian Press, 8-14-2013

The Allure of Parallel Programming Having multiple CPUs is helpful for some problems just like having multiple people is helpful Amdahl s Law: Almost every problem has a serial component: a spot where only one proc/person can work Hillis: Parallel programming is faster than people believe Trade-offs: More CPUs cost money, is it worth it? Source In a call center each, person can work independently but if there are no calls to take, they get paid to watch cat videos.

Algorithms for Parallelel Execution Group activity to study parallel algorithms Need a sheet of paper

Step 1: Premise Find a group of 5 or 6 people In a moment, will show 250 Letter Grades A to F Be in 10 rows of 50 each like... 0: C C F A D F B 1: B B B F D F B 2: D B A F A F D Your group is a multi-processor computer Count all grades them into a histogram Answer: A 3 B 6 C 2 D 4 F 6 Write down counts on one new sheet of paper Bonus cards to first folks to submit correct answers CK verifies answers 3 cards first group of finishers 2 cards to second group 1 card to third group Bring your answer to the front

Step 2: Find an Algorithm Task Count letter grades into a histogram 0: C C F A D F B 1: B B B F D F B 2: D B A F A F D Hand paper to Chris to verify, bonus cards for quickness Algorithm: Hand in after finishing In your group of 5 or 6, determine your algorithm How will you cooperate to sort the numbers as fast as possible? Write down your strategy/algorithm on a sheet of paper to turn in Include Full Names and NetIDs of everyone in your group

Data 0: A D F B D F B D D B F F B D B A B A F F B D A A A 1: F D B F D F B D A C F F D B B D B F B C C B A D D 2: D D D F F F D A F D C D B A A A B A C C D D F C C 3: D B D F B C A A C A B D A A B A F A A F F A A D C 4: F A C A A C A C F F D B B A F A B D C B B F D F B 5: A C D B F A F C A A A D A C D B F C B A A D F F F 6: C D D B C A D C D A B A B C D F F F F F F C B C D 7: A B D F A A A A F A F A A B C F A B B D A D C D B 8: B A A A A D C A A D F C F A A D D B C B F C F B B 9: F F D F B D F D A B C A D D B F F C D A A A C C C

Step 1: Premise Find a group of 5 or 6 people In a moment, will show 50 random numbers on the screen Will be 5 rows of 10 random numbers each, like... 86 12 45 54 61 11 49 12 15 86 99 45 12 54 11 61 49 15 12 99 Your group is a multi-processor computer Sort all the numbers on the screen Write down entire sorted list on one new sheet of paper Bonus cards to first folks to submit correct answers CK verifies answers 3 cards first group of finishers 2 cards to second group 1 card to third group Bring your answer to the front

Step 2: Find an Algorithm Task Will be 5 rows of 10 random numbers each, like... 86 12 45 54 61 11 49 12 15 86 99 45 12 54 11 61 49 15 12 99 Write full list of sorted numbers on one sheet of paper Hand paper to Chris to verify, bonus cards for quickness Algorithm: Hand in after finishing In your group of 5 or 6, determine your algorithm How will you cooperate to sort the numbers as fast as possible? Write down your strategy/algorithm on a sheet of paper to turn in Include Full Names and NetIDs of everyone in your group

Step 3: Sort it 3 43 76 96 61 0 17 5 42 64 70 52 42 21 53 71 71 92 90 71 46 45 96 66 9 91 99 48 80 35 65 33 49 23 70 3 96 94 51 75 28 32 68 58 9 95 57 17 3 22