Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write C console programs of the axpy algorithm for integer data types. Instrument and monitor and measure execution time as a function of problem size.

Write C console programs of the axpy algorithm for integer data types. Instrument and monitor and measure execution time as a function of problem size. For each of the 2 data types:

Write it as a straight forward, single processor, sequential execution program, which you can scale the size of the axpy computation for N = 1, 5, 10 , 50, 100, 500, 1000, 5000, 10000, 50000, 100000, 500000 and 1,000,000 vector elements . Use a random number generator to fill the vectors. Set the vector dimension using a DEFINE statement then recompile & execution each vector length.

Your program should print out the vector length, and wall clock execution time in the console window, and computation time per axpy vector for each vector length used in your program code, and the number of accuracy improvement loops you run the daxpy computation to improve accuracy.

Your console program should print out using formatted printf commands

Vector length(number of vector elements)

The number of accuracy improvement loops you run the daxpy computation to improve accuracy

Total computation time

Computation time per axpy vector

Computation time per vector element

Number of machine cycles per arithmetic operation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Who will you assemble on the team?

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago