Question: The following Fortran program is to be executed on a uniprocessor, and a parallel version is to be executed on a shared - memory multiprocessor.

The following Fortran program is
to be executed on a uniprocessor, and a parallel
version is to be executed on a shared-memory
multiprocessor.
L.1: Do10I=1,1024
L2: ??(I)=0
L.3: Do20J=1,1
L4: 20,??(I)=sun(I)+I
L5: 10 Continue
Suppose statements 2 and 4 each take two
machine cycle times, including all CPU and memory-
access activities. Ignore the overhead caused by the
software loop control (statements L1, L3, and L5)
and all other system overhead and resource con-
flicts.
(a) What is the toal execution time of the
program on a uniprocessor?
(b) Divide the outer loop iterations among
32 processors with prescheduling as follows:
Processor 1 executes the first 32 iterations
to 32). processor 2 executes the
next 32 iterations to 64
 The following Fortran program is to be executed on a uniprocessor,

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!