[SOLVED] 程序代写代做代考 Your submission must include one report (PDF file only) with results and analysis, and four programs. In the programs, document the build procedure and the system you ran the programs on as comments.

30 $

File Name: 程序代写代做代考_Your_submission_must_include_one_report_(PDF_file_only)_with_results_and_analysis,_and_four_programs._In_the_programs,_document_the_build_procedure_and_the_system_you_ran_the_programs_on_as_comments..zip
File Size: 2110.08 KB

SKU: 3630678112 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Your submission must include one report (PDF file only) with results and analysis, and four programs. In the programs, document the build procedure and the system you ran the programs on as comments.

1. OpenMP pi summation
The integral of 4/(1+x^2) from 0 to 1 should give an approximation to pi. The integral can be approximately computed using the Reimann sum formulation of a definite integral. The serial pseudocode for this summation is as follows:
delta_x = 1.0/n
sum = 0.0
x = 0.0
for (i = 0 to n-1)
x = (i+0.5) * delta_x
sum = sum + 4.0/(1.0 + x*x)
end
approx_pi = sum * delta_x
(a) Write a C program that performs this computation and parallelize it using OpenMP.
(5 points)
(b) Time the loop for different values of n and different thread concurrencies. What GFlop/s rate do you achieve? Is it along expectations?
(5 points)

/docProps/thumbnail.jpeg

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 程序代写代做代考 Your submission must include one report (PDF file only) with results and analysis, and four programs. In the programs, document the build procedure and the system you ran the programs on as comments.
30 $