Performance test with the OpenMP implementation

Assignment Help Computer Engineering
Reference no: EM133045702

COMP1680 Clouds, Grids and Virtualisation - University of Greenwich

Learning Outcome 1: Characterise and critically evaluate high performance computing based architectures and their suitability for given applications.

Learning Outcome 2: Implement and execute applications using shared and distributed memory programming paradigms.

Learning Outcome 3: Describe and critically discuss the roles and applications of cloud and grid computing.

You are provided with a two C program codes (called jacobi2d.c and gauss2d.c) that solve a rectangular 2 dimensional heat conductivity problem using the Jacobi and Gauss-Seidel iterative methods.

This code can be compiled and linked to produce a conventional executable files called jacobiSerial and gaussSerial by using the following commands:
gcc jacobi2d.c -o jacobiSerial gcc gauss2d.c -o gaussSerial
To run the executable type in the executable name: jacobiSerial or gaussSerial

As you implement each of the following 4 steps make sure that you retain and do not overwrite previous versions of your solutions.

Step 1
You are required to compute a temperature distribution for a rectangular 2D problem with boundary conditions set at top 100°C, bottom 20°C, left 30°C and right 40°C with a range of problem sizes. To do this you are required to modify the codes to:
• reflect the boundary conditions described above
• report the execution time Record the run-time of your code under a range of problem sizes using different levels of compiler optimization.
Be advised that:
• it is possible that aggressive optimization will break the code
• you will need to stop the results from printing if you are to obtain realistic measurements of the execution time.

Step 2
You are then required to modify the applications you created in step 1 to produce a basic parallel version of the codes using OpenMP. The following commands will compile your parallel version on a platform that has OpenMP installed:
gcc -fopenmp jacobiOpenmp.c -o jacobiOpenmp gcc -fopenmp gaussOpenmp.c -o gaussOpenmp
The parallel codes must include timers to report the parallel run-time of the code. This version must be tested to establish correct operation using 1, 2, 4 and 8 threads/processors, regardless of performance. (These versions may run on any platform you choose as performance is not an issue at this stage.)
Include in your report, the result for a 20x20 problem size for 1,2,4 and 8 processors to demonstrate the code works correctly.
Run the Gauss-Seidel code for only 1 iteration using 1 and 2 threads for a 20x20 problem size. Output the result along with the timings. Discuss the differences in the solutions.

Step 3
Using the cms-grid machines you are to run performance tests with the OpenMP implementation you created in step 2. This will require that you remove most of the print output from the code and increase the problem size to provide sufficient work to demonstrate useful speedup. You are expected to provide speedup results:
• for a range of problem sizes, you are unlikely to see much speedup for small domains, use at least 100x100+
• for a range of number of threads (from 2 up to 8 threads) In calculating the speedup of your parallel code you should use the optimized single processor version of your code you produced in step 1 and compare to this. You will need to apply similar compiler optimizations to your parallel code. Please list your runtimes in a suitable unit.

Step 4
Using different OpenMP directives and clauses you are to further modify your OpenMP application to improve the parallel performance. You are expected to provide results that permit comparison with those you obtained in steps 2 and 3. Comment on the differences between optimising the Jacobi and Gauss-Seidel Methods.

Deliverables
• A PDF file with your report
• A ZIP file with the source code for your solutions.
Your report is required to provide details of your implementation of steps 1 to 4 as described above. The report should include discussion of your solutions and provide a clear description of; the code changes you have implemented, your compilation and execution processes and your test cases. For steps 3 and 4 you are expected to provide tabular and graphical results. Comment on the differences between the two methods and the effect on parallelisation. Your zip file should provide suitably named source code files for each of your implementations.

Attachment:- Grids and Virtualisation.zip

Reference no: EM133045702

Questions Cloud

State the stockholder equity of the alphabet corporation : State the stockholder's equity of the Alphabet Corporation if it has a current net profit of $1,649,000, beginning-of-the-period retained earnings of $6,848,000
Write a press release zabdesk : Write a press release zabdesk recognize as one of most efficient internet software offered by any university in Pakistan?
What is the ending inventory using dollar-value lifo : One year later its ending inventory was $2,100, and costs had increased 5% during the year. What is the ending inventory using dollar-value LIFO
Describe his-her style of leadership in the company : Strategic management is a process that combines three major interrelated activities: Strategic Analysis, Strategy Formulation and Strategy Implementation.
Performance test with the OpenMP implementation : Compute a temperature distribution for a rectangular 2D problem with boundary conditions set at top 100°C, bottom 20°C, left 30°C and right 40°C with a range
Discuss quality decisions as purchasing and supply activity : It is a brand that is dedicated to working with customers to design the future. Design and Quality are at the core of everything we do.
What is the price of the product in costa rica : A product sells for $100 in the United States. If purchasing power parity (PPP) holds, what is the price of the product in Costa Rica (CRC)
Discussions of amoral business : The Dodd-Frank Act provides a mechanism by which "too-big-to-fail" financial institutions can be shut down without a tax-payer bailout. But large financial inst
Warnings or lists of ingredients : a. Should this standard apply in the case of toys that contain lead paint or pose choking hazards for children and, thus, should parents bear responsibility for

Reviews

Write a Review

Computer Engineering Questions & Answers

  How did the immediate decision affect the subsequent one

Explain in your own words why it is important in some situations to consider future decisions as well as the immediate decision at hand.

  What do you think based on software testing

The prototype improves the control flow graph of a program and builds a transformed graph with fewer infeasible paths.

  Discuss the organization and estimate both the damage cost

Assess damage and cost-assess the damage to the organization and estimate both the damage cost and the cost of the containment efforts

  Write code to demonstrate your function on various inputs

A function (addBinary binaryList) that takes a list of binary numbers and returns their decimal sum. (addBinary '(1101 111 10 101)) returns 27.

  What is the power density away from a directive antenna

What is the power density (in Watts) 30 km away from a directive antenna that has a transmitted power of 38 dBm and a directive antenna gain of 24 dB?

  What other data could you imagine would be valuable

What could you do/would you need to do to clean or modify the existing data? What other data could you imagine would be valuable to consolidate.

  Develop a mock computer and internet security policy

Organizations rely heavily on the use of information technology (IT) products and services to run their day-to-day activities. Ensuring the security of these.

  How did the use of color enhance the web site

What is the purpose of the site? Who is the intended audience? Do you believe the site reaches its audience? How did the use of color enhance the Web site?

  Write out logic of program that allows user to enter a value

Write out the logic to the following problems. Write out the logic to the following problems.Represent the logic of a program that allows the user to enter.

  How to provide the name of the web site

For this project you will need to make a Microsoft Word document which includes a table and hyperlinks to Web sites helpful to someone studying in your major Paralegal.

  Design and demonstrate the finite state machine

Cpr E 281 FINAL PROJECT - Design and demonstrate the finite state machine for the control circuit. Show that it produces the correct output

  Separate engineering management systems

An agency has focused its system development and critical infrastructure data collection efforts on separate engineering management systems

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd