Free Essay

You Only Need to Submit Programs of Part a on

In:

Submitted By saadzikria
Words 1018
Pages 5
Parallel Processing
Spring 2013

Assignment 03

Distribution date: 21.02.2013 Due date of Part A: 07.03.2013

Due date of Part B: 22.03.2013

Marks : 300

Read Carefully:

Instructions: (Bonus Point 10)

1- You only need to submit programs of part A on March 7, 2013 and after mid term you need to compile & run your programs on case HPC cluster. 2- Part A & Part B have equal marks. i.e each has weight age of one assignment.

3- If two assignment solutions are found to be copied then both will be awarded zero and a disciplinary action will be taken against both students. Be careful regarding plagiarism. TA will check Report plagiarism by turnitin and object code of the programs will be checked by another tool. If you will only change the variables of other assignment it will be caught by code plagiarism checker. So don’t give your assignment solution to other students otherwise both students will be affected.

4- Late assignment will NOT be accepted, what so ever is the reason.

5- Name your code files as “yourname_Questionxx_PartX” e.g Muhammad_imran_question01_Part_a”. (1.5)

6- Make a folder and name it as “Ass03_yournameRooll_YourName”. e.g ‘Ass03_Muhammad_Imran_F-06_047”. Place your codes files. (1.5)

7- Email zip file to mimran_047@yahoo.com & mfarooqarif@gmail.com

8- Subject field of your email must be “PP_Ass03_PartX_Yourname” (2)

9- Email must be received till 12:30 pm on due date. After that I will not accept the assignment.

10- TA will have right to call any student for explanation and running of his/her codes & report. If students will fail to explain and run the programs he/she will be awarded zero.
Part A

Due date of Part A: 07.03.2013

Marks Part A: 150

Question # 1 (Marks 25)

A 1024-node parallel computer has 40 bit RISC processor with clock rate of 200 MHz and local memory of 64 MB. Memory access time for local load/store is 5 clock cycles. While overhead of 12 clock cycles is required to initiate transmission of a request to remote node. The bandwidth of the interconnection network is 75MB/sec. In a set of program 10 % instruction are load and 8 % are stores. If 250,000 instructions are executed compute:

a) Load/store time if all accesses are to local nodes.

b) Repeat part (a) if 15 % of accesses are to the remote node.

Packet format is given below.

|Source address (Bytes ) |Destination address (Bytes) |Payload (Bytes) |
| | |(note: Ack code is of one byte) |

Programming:

Objective:

The objective of the programming Questions in this assignment is to get you familiar with parallel programming using OpenMP & MPI.

Question # 2 (Marks 30)

Threshold Detector System of an image

Build a threshold detection system of an image which counts the no of pixels above a threshold level of 128(decimal). Image has 512 x 64 pixels and each pixel has 8 bit gray code intensity level.

a) Write Pseudo code & C code for sequential program to solve the above problem where input matrix of pixels intensity values is generated by the random no. generator

b) Solve the above problem using SPMD approach; hence give

a) Pseudo code

b) C code Using OpenMP for a single node (Quad core system)

Question # 3 (Marks 30)

Dot Product of two vectors

Compute the dot product of two vectors A and B, each of 220 integer elements where each element is less than 100.

a) Write the pseudo code & C code for sequential program to solve the above problem where vectors A and B are generated by random no. generator

b) Solve the above problem using SPMD approach; hence give

a. Pseudo code

b. C code Using MPI for a 32 cores cluster

Where Input vectors A and B are generated at P0 by the random no. generator and task distribution & final result should also done by P0

Question # 4 (40)

Matrix-Vector Multiplication

Multiply matrix A of size 1024 x 2048 with a vector B of size 2048 x 1 where vectors A and B are generated by random no. generator where each element is less than 100 .

a) Write the pseudo code and C code for sequential program to solve the above problem

b) Solve the above problem using SPMD approach; hence give

• Pseudo code

• C code Using MPI and OpenMP

Note: use MPI among the nodes and Open MP within node to implement where

• Matrix A and vector B are generated by P0

• P0 distribute the tasks among nodes using MPI

• Each node use OpenMP to build the partial result.

• P0 collects the results from nodes and builds the resultant vector

(Cluster consist of eight nodes, each having four cores)

NOTE: your program Codes should be properly commented (25 points)

Deliverables:

• Solution of Q#01

• Program codes files for part a) and b) of Q#02 - Q#04

• A report (in PDF) which must includes pseudo codes you have used to write the programs for part a) and b) of Q#02 - Q#04

.

Part B

Due date of Part B: 22.03.2013

Marks Part B: 150

Objective:

The objective of this part is to get you familiar how to compile, execute and analyze the parallel programs ( OpenMP, MPI & hybrid programs) on a Cluster.

Question 01

a) Run and execute your written codes for Question#2-4 on CASE HPC cluster

b) Analyze the sequential & parallel execution times.

For sequential and parallel execution time measurement exclude the time for input matrix generation and display of the output matrix.

Deliverables:

• Source Code files for part a) and b) of Q#02 - Q#04

• Your programs code must be running on CASE HPC cluster of 32 cores.

• Input matrices and exe files for part a) and b) of Q#02 - Q#04

• A report (in PDF) which must includes

o Pseudo codes you have used to write the programs for part a) and b) of Q#02 - Q#04

o Results of part a) and b) of Q#02 - Q#04.

o ,sequential and parallel execution times of Q#02 - Q#04

o Your comments on the results.

Similar Documents

Premium Essay

Medicare Case Study Essay

...through a quality payment program which helps Medicare to target the goal for care quality and making patients healthier which is the most important part of the mission. The Medicare Access and CHIP Reauthorization Act of 2015 (MACRA) discontinued the Sustainable Growth Rate formula, which made doctors and primary care physicians who participated in Medicare worried about possible payment cliffs for 13 years. The Quality Payment Program has 2 pathways to choose: 1. Advanced Alternative Payment Models (APMs) - To earn an incentive payment, you have to participate in an Advanced APM, through Medicare Part. You can be a part of the Quality Payment Program in 2017 if you joined the Advanced APM or if you have more than $30,000 worth of Medicare bill which is the allowed charges a year in Part B. The healthcare provider must also see and treat more than 100 Medicare patients a year. It has to meet both the...

Words: 534 - Pages: 3

Free Essay

Ba398

...DESCRIPTION OF YOUR DUTIES 3. NAME OF PROPOSED FACULTY ADVISOR Advisors for the MBA Internship Reports (BA 398) should be selected from the university MBA faculty available for the term (see catalog or website). If you cannot select an advisor or the person selected by you is not available, please consult the Program Director or the Chief Academic Officer. Please get a printed synopsis of the MBA Internship Report requirements from the Admissions and Records Office. If you decide to change your advisor or switch from BA 398 to BA 399, you need to register again and get approval from the Chief Academic Officer. 4. STUDENT’S SIGNATURE (Student’s Signature and Date) 5. I AGREE TO REVIEW AND GRADE THE REPORT. (Advisor’s Signature and Date) BA 398 6. ARE YOU CHANGING YOUR ADVISOR OR INTERNSHIP? _____YES _____NO If “NO”, please get your advisor’s signature (#5), and submit this form to the Program Director or the Chief Academic Officer. If “YES”, please schedule an appointment for approval of change(s) to your selected advisor and/or the internship company, fill in this form, get the necessary signatures (#5 and #6b), and then submit this form to the Program Director or the Chief Academic Officer. a. WHO IS YOUR CURRENT ADVISOR AND WHY DO YOU INTEND TO SWITCH ADVISORS? b. I AGREE TO RELEASE THE STUDENT TO ANOTHER ADVISOR. (Signature and Date) c. I DO NOT AGREE TO RELEASE THE STUDENT TO ANOTHER...

Words: 3326 - Pages: 14

Free Essay

Code

...  on  Wed  9/29),  which  may  take  a  few  minutes,  so  best  not  to  wait  until  the  very  last  minute,     lest  you  spend  a  late  day  unnecessarily.     Be  sure  that  your  code  is  thoroughly  commented   to  such  an  extent  that  lines’  functionality  is  apparent  from  comments  alone.       Goals.     •   Introduce  you  to  larger  programs  and  programs  with  multiple  source  files.   •   Empower  you  with  Makefiles.   •   Implement  a  party  favor.       Recommended  Reading.     •   Section  17  of  http://www.howstuffworks.com/c.htm.   •   Chapters  20  and  23  of  Absolute  Beginner’s  Guide  to  C.   •   Chapters  13,  15,  and  18  of  Programming  in  C.                             0  <  12   This  is  CS50.   Harvard  College  Fall  2010   Academic  Honesty.     All   work   that   you   do   toward...

Words: 4248 - Pages: 17

Premium Essay

Individualised Learning Plan

...the Diploma of Management within a WA-based RTO. Individualised Learning Plan: TAE40110 SAVE Training Introduction This document is used to plan a learning and assessment pathway that best suits you. The duedates and structure set out in this plan have been tailored to ft your current circumstances. We can review and change this plan at any time if for some reason it's not working out or there has been a major change in your situation. Please contact us if this is the case. Our aim is to help you get qualifed sooner than your maximum enrolment period, this will create a bufer of extra time in case you need it. If you feel you are not going to meet a deadline set out in this plan it is important to contact us so we can review it for you. Don't avoid us if you miss a deadline – it's not the end of the world and we'll help you get back on track. Just because we suggest you work through a certain section or complete a particular activity does not mean you can't explore elsewhere in the site! In addition, it is unlikely that you will get all the information you need just from the Learn section so make sure you get amongst the 'Web and do some research. Remember, we are here to help. We aim to be the most helpful, friendly, approachable trainers around and you...

Words: 1328 - Pages: 6

Premium Essay

Nutrition and Heath

...Running head: Nutrition and Health Programs Nutrition and Health Programs Brittany C. luten Dr. Wallace ENG 115 assignng.2.1 November 5, 2012 Nutrition and Health The Chairman of the state school board has asked you (a consultant on health and wellness), to write an informative piece about the recent changes to the breakfast and lunch program. The information will be used improve nutrition and health. The content will turn into a brochure describing the four major issues: economic situation, special needs, health of the population being served, process and benefits of the program. He asked you to include two visuals to illustrate the issues. We know that there are several ways to help children, and one great way is to ensure they are properly fed. The hearts and minds of children cannot be fully engaged in learning, unless their bodies are content and ready to learn. When children come to school hungry, they are rushing though hectic schools lunch periods, or when they become restless because there is “no time” for recess, their learning abilities will be challenged. Poor nutrition and the lack of physical activities for today’s youth are major contributing factors to obesity and chronic diseases. A study conduced by Y.C. Wang et al. in 2006 found that the spike in childhood obesity between 1988 and 2002 could have been prevented by an average reduction of 110-165 calories per day. It also...

Words: 1499 - Pages: 6

Free Essay

Human Resources Management

...Final Exam Study Guide YOU MAY WANT TO PRINT THIS GUIDE. 1. The Final Exam is open book, open notes. The maximum time you can spend in the exam is 3 hours, 30 minutes. If you have not clicked the Submit for Grade button by then, you will be exited from the exam. In the Final Exam environment, the Windows clipboard is disabled, and so you will not be able to copy exam questions or answers to or from other applications. 2. You should click the Save Answers button in the exam frequently. This helps prevent connection timeouts that might occur with certain Internet service providers, and also minimizes lost answers in the event of connection problems. If your Internet connection does break, when you reconnect, you will normally be able to get back into your Final Exam without any trouble. Remember, though, that the exam timer continues to run while students are disconnected, so students should try to log in again as quickly as possible. The Help Desk cannot grant any student additional time on the exam. 3. See the Syllabus section "Due Dates for Assignments & Exams" for due date information. 4. Reminders • You will only be able to enter your online Final Exam one time. • Click the Save Answers button often. • If you lose your Internet connection during your Final Exam, log in again and try to access your Final Exam. If you are unable to enter the Final Exam, first contact the Help Desk and get a ticket number, and then contact your instructor. • You will always be able to...

Words: 1470 - Pages: 6

Premium Essay

Bad Things

...CPSC 1150: Lab 4 Switch/case, while loops methods, and menus Introduction Most modern programs do more than one thing and don't quit till the user quits the program. Our previous program terminate when the program ended, but most program waits for input when it's not doing any work. Only when the user informs that program that they want to quit, does the program exits. Through this example, we will look at the while loop, switch/case statement, and how to break your program into individual pieces with methods Preparation • • • Read 3.13, 5.2,5.3, 5.5 and 6 Read class notes Try problems 4.18, 5.32, 6.20 Instructions Create a program that can be used by nursing students to help them with calculations. You program should contain the following menu items. 1) Dosage Calculation Amount Given= D ×V H D = dose ordered or desired dose H = dose on the container label or dose on hand V = form and amount in which drug comes(tablets, capsule, liquid) Example: D =50mg, H = 125mg, V = 5ml Amount Given = 2ml. For this option create a subroutine that prompts for quantity and units of D , H . In addition to asking for the quantity of D and H ask for their units as well. Make sure their units match. 2)IV rate calculation using calibrated tubing gtt /min= V ×C minutes or gtt /min= V ×C hours∗60 V = is the volume in milliliters C = is the calibration of the tubing in gtt/ml Time = in minutes or hours. For this option...

Words: 456 - Pages: 2

Free Essay

Bible

...patient’s out-of-pocket expense will be as low as $5 for each prescription refill with a maximum savings of up to $50 per prescription. INSURED PATIENT BILLING Submit a primary claim to your patient’s insurance, and then submit a secondary coordination of benefits (COB) claim to AlphaScrip. BIN: 610600 PCN: AS Group and ID numbers: located on the card PRIOR AUTHORIZATION If your insured patient’s insurance provider denied the primary claim due to a Prior Authorization (PA) requirement, please initiate the PA process to help your patient save on future NUVIGIL prescriptions If you have questions regarding prior authorization or need forms to assist your patient initiate the prior authorization process, please go to CoverMyMeds.com for assistance PATIENTS WITHOUT INSURANCE COVERAGE FOR NUVIGIL Submit a primary claim to AlphaScrip using Other Coverage Code: 00 or 01 BIN: 610600 PCN: AS Group and ID numbers: located on the card For assistance or questions regarding pharmacy billing, please contact the AlphaScrip Pharmacy Help Desk at 1-877-274-3244. The correct Other Coverage Code is required (see below). Editing the Other Coverage Code may be necessary. 03: if primary insurance has denied coverage or 08: to reduce the patient’s primary co-pay expense First Prescription FREE* If your doctor prescribes NUVIGIL for you, present this page, including the NUVIGIL Prescription Savings Card, and your first prescription for NUVIGIL to any participating retail pharmacy and receive your...

Words: 935 - Pages: 4

Premium Essay

Website Evaluations

... a. Does the church have a prayer ministry? What does it look like? Saddleback Community Church does have a prayer ministry that is fairly easy to get to. It is located under Care & Help and listed as Prayer Ministry. My only negative belief is that the main page has too much going on with to many other pages from it that it can be distracting and hard to find what you want if you are not sure where to look for it. Otherwise, they Prayer Ministry page itself is great as it is simple and easy to use. They have a simple message about the ministry, a number to call if you need help or to submit a request, and a Prayer request form on the page you can fill out and submit allowing for many different avenues to submit a request to them. 2. Ministry is…following Jesus’ example by practicing spiritual mentoring and multiplying. a. Does the church have a strategy for evangelism? After reviewing the website, you can tell that the ministries are built (including the training offered) around evangelism. However, there is no specific strategy layed out on the website about evangelism for the church. The closest I could find was a reference to Rick Warren’ s book “The Purpose Driven Life”. b. Does the church have a strategy for discipleship? Again, you can tell the small groups were created with discipleship in mind, however no specific stategy is listed. c. Briefly describe what they look like. Discipleship and evangelism seem to be built into what Saddleback Community...

Words: 1702 - Pages: 7

Free Essay

Nnnnnnnnnnnnnnn

...Campbell, Cohen Documentation Guide Page 1 The present Guide is a list of documentation generally required in support of an immigration application. ***Please note that the above list is not exhaustive and may be subject to change by Citizenship and Immigration Canada without prior notice. *** Please collect the documents outlined in this guide. Any document that is not in English or French must be accompanied by an original certified translation. IMPORTANT INFORMATION – BEFORE YOU BEGIN WORKING ON YOUR FILE This section addresses: A. The list of eligible occupations B. The limit on the number of applications that will be considered C. Requirements for the Federal Skilled Worker Program (FSWP) ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ A. The list of eligible occupations From May 1, 2014 until April 30, 2015, Citizenship and Immigration Canada (CIC) has announced that it will accept applications under the FSWP from applicants with work experience in one of 50 eligible occupations. In order to be eligible to submit an application the applicant must have at least 1 year of full time (or full time equivalent) work experience, within the last 10 years, in one of the following 50 occupations listed below. Note: Full time work is defined as a minimum of 30 hours per week. 0013 Senior managers — financial, communications and other business services 0015 Senior managers — trade, broadcasting and other services, n.e.c. 0111 Financial managers 0112 Human resources managers 0113 Purchasing managers 0121...

Words: 3963 - Pages: 16

Premium Essay

Disadvantages of Lean Manufacturing

...Gamble Marks: 20% of total mark Deadline: Submit to Turnitin by midnight on Sunday 28th September 2014 Objective: This assignment is designed to help students learn about: (b) How to read and analyse information in case studies and business articles (c) Best practice product and process development (d) How to deploy a customer focus throughout the innovation process (e) The importance of teamwork – in particular multidisciplinary teamwork (f) How to find, use and acknowledge information through research and referencing (g) How to write professional business reports Introduction: This assignment is based on the Harvard Business Review (HBR) case study on how Proctor & Gamble (P&G) tripled its innovation success rate and the HBR article on P&G’s Connect and Develop (C&D) program. The assignment also draws upon information in the textbook and other sources. Information from independent research using other sources is also required. Other than the two HBR articles, all sources of information used to answer the assignment questions must be referred to using the Harvard Referencing System as outlined in the Subject Instructions. Assignments should incorporate an in-text reference in the form of (Author, date) to indicate the source of each item of information. A complete reference list is required at the end of the assignment. Information obtained from the case study does not need to be referenced unless a direct quote is used or...

Words: 1326 - Pages: 6

Free Essay

Dada

...Students in the past who paid attention to this syllabus were more successful than those who did not. ———————————————————————————————————— General Information: Instructor: Andrea L. Waddle Lectures: NO REGULAR LECTURE MEETINGS Office: 3-151 Hanson Hall Office Hours: By appointment only Office Phone: 612-625-0311 Email: waddl003@umn.edu Homepage: http://sites.google.com/site/andreawaddle/ I will respond to emails within 24 hours. Course Objective: The objective of this course is to give you an opportunity to: 1. Apply the analytical skills and intuition obtained in your economics courses in order to examine an economic issue in which you have a special interest. 2. Learn how to write a formal report. For students who find their economics courses “too theoretical,” this is the opportunity to apply the knowledge they have accumulated to a real world problem or issue. Course Format: In order to obtain the two credits for the course, students must write a 10-12 page formal report, with additional graphs/charts, which involves an in-depth analysis of an economic issue. There is no class meeting for the course. However, students will have to submit information regarding the progress of their research to the instructor regularly during the course. Since there are no lectures scheduled for the course, the amount students can learn from this course will depend on their own initiative. On average, students should expect to spend 12-15 hours...

Words: 2538 - Pages: 11

Free Essay

Kft1

...appropriate program code. Competency 430.1.3: Use of Data Structures - The graduate develops working programs that use appropriate data structures for problem solving. Competency 430.1.4: Modeling Systems Using Unified Modeling Language (UML) - The graduate develops and interprets Unified Modeling Language (UML) diagrams which model object-oriented designs. Competency 430.1.5: Object-Oriented Concepts - The graduate applies object-oriented concepts, develops object-oriented designs, and uses object-oriented programming techniques. Competency 430.1.6: Software Testing and Troubleshooting - The graduate applies software testing and troubleshooting strategies to determine programming errors and recommend appropriate solutions. Introduction: As a competent programmer, your ability to design and develop algorithms, your proficient use of data structures, and your ability to use the Unified Modeling Language (UML) to communicate and develop object-oriented designs will help you design and develop applications to meet customer requirements. A solid understanding of object-oriented concepts will help you develop applications that are maintainable and extensible. Strong competence in software testing and troubleshooting will allow you to validate and verify your applications to ensure you are delivering a quality product that meets all requirements. You will need to develop a Java application to meet the requirements of this assignment. It is recommended that you use NetBeans...

Words: 2139 - Pages: 9

Free Essay

How Event Reports Are Processed

...Event Reporting User Manual May 19, 2008 Event Reporting User Manual Event Reports An Event Report lets you track the identification, investigation, and resolution of any issues affecting your fleet or business operation. Event Reports can be an important element of your company's Quality Assurance (QA) program, Continuing Analysis And Surveillance System (CASS), reliability program, or Safety Management System. For more information about safety risk management, consult the U.S. FAA’s Safety Program website (http://faasafety.gov/). HAI’s Event Report program is accessible through the web at www.eventreporting.org, or www.mmir.com. Registration only takes a few minutes. You can add and remove additional users to your company’s account, with their own unique log-on. An Event Report’s status can be New, Open, Closed, or Rescinded. When an Event Report is initiated, its status is New. Once acknowledged by the designated management representative (via checkbox), the report’s status is Open. An Open report means that an issue has been identified, brought to management's attention, and needs to be addressed. Authorized users can enter additional comments on Open reports as an investigation ensues. Once the issue has been satisfactorily resolved and documented, the Event Report should be classified as Closed. Once Closed, no further entries or amendments are possible on the Event Report. Authorized users may also rescind a New or Open Event Report, but this option should be used...

Words: 2496 - Pages: 10

Premium Essay

Chen

...environmental laws. In addition, a number of Presidential Executive Orders (EOs) play a central role in our activities http://www3.epa.gov/region9/enforcement/intro.html Under the Congressional Review Act (CRA), a rule generally cannot take effect until EPA submits a rule report to each House of Congress and to the Comptroller General of the United States (head of the U.S. Government Accountability Office). Rules that are not considered "major" under the CRA, may take effect as they otherwise would under other applicable law once a rule report is submitted. A rule that is "major" may take effect no earlier than 60 calendar days after Congress receives the rule report or the rule is published in the Federal Register (FR), whichever is later. The CRA also provides procedures by which Congress can rescind a rule within a specified period of time using expedited procedures. 2. Go to http://www.epa.gov/. Read the Community right-to-know regulation CFR 40 Section 370 and summarize subpart A-B-C and D. Subpart A General Information 370.1 What is the purpose of this part? 370.2 Who do “you,” “I,” and “your” refer to in this part? 370.3 Which section contains the definitions of the key words used in this part? This part (40 CFR part 370) establishes reporting requirements for providing the public with important information on the hazardous chemicals in their communities. Reporting...

Words: 4679 - Pages: 19