編程輔導

C++ code optimiaztion via gprof and gcov

CS作業代寫

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写Due date: April 2, in class

Read about the linpack benchmark at

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写http://www.netlib.org/utk/people/JackDongarra/faq-linpack.html

Download the (slightly modified) file linpack.c from

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写http://www.cas.mcmaster.ca/~nedialk/COURSES/3f03/private/linpack.c

When running this benchmark on a 2.66GHz Dual-Core Intel Xeon, I obtain this table (MFLOPS

is million floating-point operations per second):

n max MFLOPS compiler flags

100 329.813 gcc

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写1000 410.306

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写330.914 -O0

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写931.276 -O1

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写930.425 -O2

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写1276.764 -O3

408.111 -O0

1208.931 -O1

1220.399 -O2

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写1619.045 -O3

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写Problem 1 (6 points) Study the compile options of the gcc compiler, and in particular the

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写optimization flags, and the flags that are related to SSE instructions.

Produce the same table for each of penguin, mills, and your own computer. Keep the same

flags as above, but you can also add other flags. Try to obtain as high count as you can. Submit

the three tables and a discussion on your results.

Note. You can obtain information about your system