Archer:SimpleScalar

From Grid-Appliance Wiki

Jump to: navigation, search

Contents

Tool Introduction

HOW-TO author: Renato Figueiredo renato
Name of Application: SimpleScalar
Overview: SimpleScalar is a widely-used superscalar microprocessor simulator
Download link: [1]

Installation

Follow the "Tools" link from the Downloads menu at the SimpleScalar web site to download the package with the SimpleScalar source code. The file that you need to download is simplesim-3v0d.tgz. You need to agree to SimpleScalar terms of usage prior to downloading the file.

Copy this file to the Grid appliance, under /home/griduser, using one of the mechanisms (sftp or Samba) described in the Grid appliance introductory tutorial.

Uncompress and compile SimpleScalar with the following commands within the appliance (these will compile the PISA version of SimpleScalar; at this time the Alpha model does not compile correctly with the version of gcc within the appliance):

cd 
tar -xzf simplesim-3v0d.tgz
cd simplesim-3.0
make config-pisa
make

Test the SimpleScalar installation with the following commands:

cd tests-pisa
make do-tests DIFF=/usr/bin/diff ENDIAN=little SIM_DIR=/home/griduser/simplesim-3.0/ SIM_BIN=sim-outorder
cd results
diff anagram.progout ../output/anagram.progout

The output of the diff command should be blank - meaning there is no difference between the output generated by your SimpleScalar and the reference output that comes with the simplesim-3v0d.tgz package.

Condor simulation

Here is a sample Condor submission script for one of the SimpleScalar tests. Type in and save this as a file named simplescalar_submit within the /home/gridusers/simplesim-3.0 directory:

Universe = vanilla
Executable = sim-outorder
Log = montepi.$(Cluster).$(Process).log
Output = simoutorder.$(Cluster).$(Process).out
Error = simoutorder.$(Cluster).$(Process).err
should_transfer_files = YES
transfer_input_files = tests-pisa/bin.little/anagram, tests-pisa/inputs/words
when_to_transfer_output = ON_EXIT
Arguments = -redir:prog anagram.progout -redir:sim anagram.simout anagram words
Queue 

This example submits the sim-outorder model with the anagram application and the words input file. The outputs of this run will be stored in the anagram.progout (stdout of the anagram program) and anagram.simout (simplescalar stdout).

Future Work

  • We need to find out how to compile the Alpha model with the gcc version within the appliance. If you know how to do this, feel free to add instructions to this document.
Personal tools