Simple Load Balancing CS550 Operating Systems. Announcements Project will be posted – TBA This project will use the client-server model and will require.

Slides:



Advertisements
Similar presentations
Complex Numbers – Add, Subtract, Multiply, and Divide
Advertisements

Complex Numbers – Add, Subtract, Multiply, and Divide Addition of complex numbers is given by: Example 1:
Load Balancing Parallel Applications on Heterogeneous Platforms.
Section 13-4: Matrix Multiplication
Parallel Jacobi Algorithm Steven Dong Applied Mathematics.
Section 5-4 Greatest Common Factor and Least Common Multiple.
Binary Addition Rules Adding Binary Numbers = = 1
Matrices: Inverse Matrix
Fractions Review.
Maths for Computer Graphics
What is the first line of the proof? 1.If a divides b, then a divides b – c. 2.If a divides b, then a divides c. 3.Assume a divides b – c. 4.Assume a divides.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
1 Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as a i,j and elements of.
Input image Output image Transform equation All pixels Transform equation.
MATRICES Using matrices to solve Systems of Equations.
Finding the Inverse of a Matrix
Done By L.Hariharan Topics for this presentation are 1.Square 2.Division.
C. Higher Functions Pre-Calculus 30.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
L e a s t C o m m o n M u l t I p l e.
Fractions Continued.
Exercise problems for students taking the Programming Parallel Computers course. Janusz Kowalik Piotr Arlukowicz Tadeusz Puzniakowski Informatics Institute.
Review of Matrices Or A Fast Introduction.
Operations with Fractions REVIEW CONCEPTS. Fractions A number in the form Numerator Denominator Or N D.
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
Simplifying Radicals Definitely radical, debatably simple.
Warm-up, 3/28 Compute: 1. 2 x 2 x 2 x 2 = 2. 3 x 3 x 3 = 3. 2 x 2 x 3 x 3 x 3 = 4. 5 x 5 x 2 x 2 = 5. 2 x 2 x 4 =
4.5 Inverse of a Square Matrix
In … the weather is …. Sometimes it is …. In … the weather is …. Sometimes it is ….
How to Multiply Two Matrices. Steps for Matrix Multiplication 1.Determine whether the matrices are compatible. 2.Determine the dimensions of the product.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
Divide Polynomials using Long Division and Synthetic Division.
Renaming Fractions as Decimals The trick to this is to get the fraction in a base divisible by The denominator is in base 10. The zeros in the.
CS/EE 217 GPU Architecture and Parallel Programming Midterm Review
Rules to Remember When solving an equation, the goal is to get the variable by itself. Addition and Subtraction are inverse operations. (opposites) Multiplication.
Computer Science 320 Load Balancing. Behavior of Parallel Program Why do 3 threads take longer than two?
Polynomial and Synthetic Division Objective: To solve polynomial equations by long division and synthetic division.
Section 1.7 Linear Independence and Nonsingular Matrices
Markov Games TCM Conference 2016 Chris Gann
3.6 Multiplying Matrices Homework 3-17odd and odd.
Uses some of the slides for chapters 3 and 5 accompanying “Introduction to Parallel Computing”, Addison Wesley, 2003.
Section 7-2 finding the inverse of a 2 x 2 matrix finding the inverse of a 3 x 3 matrix (calc.) properties of matrices applications that use matrices.
Notes Over 4.2 Finding the Product of Two Matrices Find the product. If it is not defined, state the reason. To multiply matrices, the number of columns.
4-3 Matrix Multiplication Objective: To multiply a matrix by a scalar multiple.
MA/CSSE 473 Day 06 DivisionPrimes Modular Arithmetic.
MA/CSSE 473 Day 05 Factors and Primes Recursive division algorithm.
Embedded Systems MPSoC Architectures OpenMP: Exercises Alberto Bosio
Multiplication and Division of Powers
Fractions A number in the form Numerator Denominator Or N D.
Ioannis E. Venetis Department of Computer Engineering and Informatics
Matrix Operations Add and Subtract Matrices Multiply Matrices
Section 10.4 – Determinant of a SQUARE Matrix
Hash Table.
Substitution, Elimination, Graphing, Matrices
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Fractions Review.
Fractions Review.
Using matrices to solve Systems of Equations
Determining Factors and Multiples
Numerical Algorithms Quiz questions
Matrix Multiplication
Fractions Review.
Fractions Review.
Fractions Review.
Multiplication of Matrices
Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as ai,j and elements of B as.
Fractions Review.
Using matrices to solve Systems of Equations
Multiplication and Division of Integers
Section 1.3 Prime Factorization
Presentation transcript:

Simple Load Balancing CS550 Operating Systems

Announcements Project will be posted – TBA This project will use the client-server model and will require implementation of load balancing We will review square matrix multiplication as an example of load balancing

Parallel decomposition and load balancing Parallel decomposition - how do we divide up work and do work in parallel. Load balancing - how do we distribute this work so that it is best divided between resources (CPUs/nodes for cluster computing) For addition of square matrices A and B, we could divide the work by rows and try to allocate the same number of rows to each thread or process.

Example Assume we have two N by N matrices, A and B Assume we have K threads or processes where K < N. We can divide up the work as follows: – Allocate N / K rows to each process or thread and perform addition. – Note that N / K is an integer division.

Example Given two 16*16 matrices A and B, divide the work between 4 threads So, each thread should calculate 16 / 4 = 4 rows of addition.

What if things don't divide up evenly? Given two 1024 * 1024 matrices, divide the work between 5 threads. Using the previous formula, we would allocate 1024 / 5 = 204 rows to each thread to perform addition. But 204 * 5 = What about the other 4 rows? Notice that 1024 % 5 gives the remainder. We must allocate the rest of the work to at least one of our existing threads. We could try to balance the work again if necessary.

Other Load Balancing Problems Finding pi Numerical Integration Particle Physics Simulations Computational Chemistry Weather Air Traffic Control Sometimes dividing work (load balancing) can be very difficult – see IEEE and ACM journals.