PR2 - CS 6290: High-Performance Computer Architecture...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 6290: High-Performance Computer Architecture Spring 2009 Project 2 Due: March 31 st (see T-Square) This project is intended to help you learn more about multi-core execution. You will submit a report for this project. To complete this project, you should know how to set up the simulator and run a simulation. You should also know how to compile a simple application using the cross-compiler. Project 1 has instructions on how to accomplish these tasks. Each part of this project assignment specifies what should be reported to complete that part of the project. As explained in the course rules, this is an individual project : no collaboration with other students or anyone else is allowed . Part 1 [25 points]: Running a parallel application Set up the simulator as explained in Project 1. This time, we will be compiling and running a parallel application called fft from the Splash-2 benchmark suite (which is often used to evaluate shared-memory parallel machines). First, make an fft directory in your ~/sim directory, then copy the source code of the application there: cd ~/sim mkdir fft cd fft cp /CS6290/fft.c . Now compile this application: /CS6290/mipsrt/cross-tools/bin/mips-unknown-linux-gnu-gcc -O3 -g -static -fno-delayed-branch -fno-optimize-sibling-calls -msplit- addresses -mabi=32 -march=mips4 -o fft.mipseb fft.c -lm -lpthread Note that we are using the same options as we did in Project 1, except that we are now telling the compiler to use the math library (-lm) and the pthread library (-lpthread) when linking the application. Now that we have a MIPS executable file for this application, we can run some simulations. The fft application has two main parameters, -m <size> and –p <nthreads>, where <size> is determines the problem size and <nthreads> specifies how many threads to use. This application performs a Fast Fourier Transform on an array that has 2 <size> elements, so be careful to specify <size> correctly – if you add 1 to the <size> parameter,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
the simulation time will more than double, so you can accidentally end up with a simulation that runs for days or even months. Another thing that you must do is to change the configuration file (sesc.conf) and set the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/12/2010 for the course CS 6290 taught by Professor Staff during the Spring '08 term at Georgia Institute of Technology.

Page1 / 3

PR2 - CS 6290: High-Performance Computer Architecture...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online