Question: need open mp codes for these two questions in c language in editable format and not hand written Thank you. Develop OpenMP Codes for the

 need open mp codes for these two questions in c language

need open mp codes for these two questions in c language in editable format and not hand written Thank you.

Develop OpenMP Codes for the following three problems. Report the speedup of your implementations by varying the number of hreads from 1 to 16 (i.e., 1,2,4,6,8,10,12,14, and 16). (1) Threshold: You will be given a rc matrix of integers called M which can be treated as an image. Given M, you should construct a binary image B such that Bij=1 if no more than p percentage of pixels in M are greater than Mij. Input: r,c,,p, Output: Consider r and c{1024,2048,4096,8192} and p=10%. The values in M are in the range of 0 to 300 both inclusive. (2) Matrix Chain Multiplication: Given a chain of n matrices (i.e., A1, A2,A3,,An ) and dimensions (rows and columns) of the matrices are p0p1,p1p2,p2p3pn1pn, respectively. Compute the product A1A2A3.An and measure the speedup

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!