Docsity

Project 1 on Benchmark Profiling and Processor Architecture | CSCE 513, Study Guides, Projects, Research of Computer Architecture and Organization

Toggle sidebar
bg1
CSE513 Computer Architecture
Project 1 Benchmark Profiling And Processor Architecture
Date Assigned: 9/7/2007
Due Date: 9/21/2007, 23:59:59
Introduction
The goal of this project is to use simulator to profile executions of given benchmark
programs, analyze performance for different computer systems based on the benchmarks,
and the roles of the compiler in this process. This is an individual project.
An overview of SimpleScalar
In this project, you need to use SimpleScalar simulation tools to profile the commercial
benchmark programs as well as other C-source programs. The SimpleScalar tool set,
originally developed at the University of Wisconsin-Madison, is a set of tools---including
compiler, assembler, linker, simulation, and visualization tools---for the SimpleScalar
architecture to simulate the programs on a variety of modern processor systems. Figure 11
gives an overview of the SimpleScalar tool set. More information on the Simplescalar
tool set can be found at the SimpleScalar Tools web page (http://www.simplescalar.com).
The SimpleScalar tool packages have been installed in the Unix machines under directory
/usr/local/simplescalar/. The following example shows how you can run the
SimpleScalar command, i.e., sim-profile command.
Example: /usr/local/simplescalar/simplesim-3.0/sim-profile -iclass go.ss 2 8 go.in
where
1 Adopt from http://www.simplescalar.com/docs/users_guide_v2.pdf
pf3

Partial preview of the text

Download Project 1 on Benchmark Profiling and Processor Architecture | CSCE 513 and more Study Guides, Projects, Research Computer Architecture and Organization in PDF only on Docsity!

CSE513 Computer Architecture

Project 1 Benchmark Profiling And Processor Architecture

Date Assigned: 9/ 7 / Due Date: 9/ 21 /2007, 23:59:

Introduction

The goal of this project is to use simulator to profile executions of given benchmark programs, analyze performance for different computer systems based on the benchmarks, and the roles of the compiler in this process. This is an individual project.

An overview of SimpleScalar

In this project, you need to use SimpleScalar simulation tools to profile the commercial benchmark programs as well as other C-source programs. The SimpleScalar tool set, originally developed at the University of Wisconsin-Madison, is a set of tools---including compiler, assembler, linker, simulation, and visualization tools---for the SimpleScalar architecture to simulate the programs on a variety of modern processor systems. Figure 1^1 gives an overview of the SimpleScalar tool set. More information on the Simplescalar tool set can be found at the SimpleScalar Tools web page ( http://www.simplescalar.com ). The SimpleScalar tool packages have been installed in the Unix machines under directory /usr/local/simplescalar/. The following example shows how you can run the SimpleScalar command, i.e., sim-profile command. Example: /usr/local/simplescalar/simplesim-3.0/sim-profile -iclass go.ss 2 8 go.in where (^1) Adopt from http://www.simplescalar.com/docs/users_guide_v2.pdf

go.ss is the SimpleScalar pre-compiled binary for the go benchmark.  2 and 8 are the two required input parameters for the go simulation.  go.in is a file that specifies the starting board position (in this case an empty file.) For more detailed information on how to use SimpleScalar simulation tools, you can refer to the Simplescalar Too Set Document on the web.

Project Details

  1. Read the Simplescalar Tool Set Document, understand the Simplescalar architecture, and study the usage of SimpleScalar simulation commands sim-fast and sim-profile.
  2. For each of the five precompiled benchmarks, namely, go.ss, applu.ss, apsi.ss, cc1.ss, compress95.ss. The command lines to use these files are listed as follows (go.ss are shown in the example) :  /usr/local/simplescalar/simplesim- 3 .0/sim-profile – iclass applu.ss < applu.in/usr/local/simplescalar/simplesim- 3 .0/sim-profile – iclass apsi.ss/usr/local/simplescalar/simplesim- 3 .0/sim-profile – iclass cc1.ss – O cc1.in – o test.s (test.s will be automatically generated)/usr/local/simplescalar/simplesim- 3 .0/sim-profile – iclass compress95.ss < compress95.in You can download the benchmarks and input files from the course webpage. You need to collect the appropriate information for later use.
  3. Assuming you have the following two machines with the same cycle time but different cycles-per-instruction (CPI) for different instruction groups as follows: Load/Store Reg-Reg Control Flow and others System 1 2 1 5 System 2 3 1 4 Table-1: CPIs for different types of instructions First, let system 1 be the reference machine. With the data you can collect from step 2, compare the performance of these two systems using weighted-sum, normalized arithmetic mean, and normalized geometric mean. Use system 2 as the reference machine and redo the comparison. Discuss your results.
  4. Here is the C program for the matrix multiplication, i.e., matmul.c, that computes

the production of two matrices Amxn x Bnxk. It takes three input parameters, i.e.,

m, n, and k, randomly generates two matrices, and then computes their product. Compile it with SimpleScalar compiler (i.e.,