검색결과 리스트
글
xterm
/usr/bin/xterm -ls -display $DISPLAY
'Linux' 카테고리의 다른 글
웹접속 속도가 느려 졌을때 점검 해보기 (0) | 2014.03.30 |
---|---|
Install and Run SPEC2006 (0) | 2013.10.19 |
Compile SPEC CPU2006 (0) | 2013.10.19 |
설정
트랙백
댓글
글
Install and Run SPEC2006
'Linux' 카테고리의 다른 글
웹접속 속도가 느려 졌을때 점검 해보기 (0) | 2014.03.30 |
---|---|
xterm (0) | 2013.11.19 |
Compile SPEC CPU2006 (0) | 2013.10.19 |
설정
트랙백
댓글
글
Compile SPEC CPU2006
ARM
1. Install SPEC CPU2006.
$ cd {path to SPEC_CPU2006}
$ ./install.sh
>> choose my platform, in my cause type "x86_64"
<< installation finish and ./shrc file is created
2. install ARM cross compiler
[Ref] http://www.m5sim.org/wiki/index.php/Download
$ sudo apt-get install gcc-arm-linux-gnueabi libc6-dev-armel-cross packages
$ which arm-linux-gnueabi-gcc
<< /usr/bin/arm-linux-gnueabi-gcc
3. Create configuration file for SPEC2006 build
[Ref] http://www.mail-archive.com/gem5-users@m5sim.org/msg04983/armv7-gcc.cfg
- change below line and save
CC = arm-none-linux-gnueabi-gcc CXX = arm-none-linux-gnueabi-g++
CC = /usr/bin/arm-linux-gnueabi-gcc CXX = /usr/bin/arm-linux-gnueabi-g++
4. Compile A benchmark
[ref] http://holypsycho.egloos.com/3084145
$ source ./shrc
$ runspec --config=armv7-gcc.cfg --action=build --tune=base bzip2
.
5. Run with Gem5
$ cd {gem5-stable}
$ ./build/ARM/gem5.opt ./configs/example/se.py -c /home/gihoon81/SPECCPU_2006/benchspec/CPU2006/401.bzip2/run/build_base_armv7-gcc.0000/bzip2 -o "/home/gihoon81/SPECCPU_2006/benchspec/CPU2006/401.bzip2/data/all/input/input.combined 3"
출처: http://www.foxwolf.net/gihun/63
ALPHA
Ref 1: http://jorrigal.blogspot.com/2008/12/spec-cpu-2006-benchmarks-linux-alpha-to.html
Ref 2: http://www.m5sim.org/wiki/index.php/SPEC2006_benchmarks
Ref 3(pre-compiled cross-compiler): http://www.m5sim.org/wiki/index.php/Download
Ref 4(SPEC CPU 2006 commands):http://www.eecs.harvard.edu/~vj/index.php/SPEC_CPU2006_Commands
1. SPEC CPU 2006 설치
# cd SPEC-CPU2006
# ./install.sh
(Ref 1을 보면 자세한 모양?이 나온다.)
2. cross compiler 설치
가장 간단하게
http://www.m5sim.org/wiki/index.php/Download
에서 gcc-4.3.2, glibc-2.6.1 (NPTL,x86/64) 라고 되어 있는 것을 받자.
적당한 디렉토리에서 (여기가 아래에서 [cross compiler installed dir]이 된다.)
# wget http://www.m5sim.org/dist/current/alphaev67-unknown-linux-gnu.tar.bz2
# tar xvfj alphaev67-unknown-linux-gnu.tar.bz2
3. alpha cross compile용 환경설정 파일 만들기
# cd SPEC-CPU2006/config/
# cp linux32-i386-gcc42.cfg alpha.cfg
# vi alpha.cfg
다음을 참고하여 수정
======================================================================================================
ext = alpha // it will add extension alpha to your binaries
CC = [cross compiler installed dir]/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gcc
CXX = [cross compiler installed dir]/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-g++
FC = [cross compiler installed dir]/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gfortran
COPTIMIZE = -O3 -static
CXXOPTIMIZE = -O3 -static
FOPTIMIZE = -O3 -static
======================================================================================================이미 수정된 파일을 원한다면 이것을 받으면 된다. [alpha.cfg]
4. build
# cd SPEC-CPU2006
# . ./shrc
# runspec --config=alpha.cfg --action=build --tune=base bzip2
여기서 파란 부분은 base 혹은 peak으로 하면 되고,
빨간색 부분은 다른 benchmark 이름으로 바꾸어 가면서 하면 된다.
다음은 이것에 대한 간단한 스크립트
=========================================================================================================
#!/bin/bash
. ./shrc
for bench in 400.perlbench 401.bzip2 403.gcc 429.mcf 445.gobmk 456.hmmer 458.sjeng 462.libquantum 464.h264ref 471.omnetpp 473.astar 483.xalancbmk 410.bwaves 416.gamess 433.milc 435.gromacs 436.cactusADM 437.leslie3d 444.namd 447.dealII 450.soplex 453.povray 454.calculix 459.GemsFDTD 465.tonto 470.lbm 481.wrf 482.sphinx3
do
for tune in base peak
do
runspec --config=alpha.cfg --action=build --tune=$tune $bench
done
done
======================================================================================================
출처: http://holypsycho.egloos.com/3084145#148614
'Linux' 카테고리의 다른 글
웹접속 속도가 느려 졌을때 점검 해보기 (0) | 2014.03.30 |
---|---|
xterm (0) | 2013.11.19 |
Install and Run SPEC2006 (0) | 2013.10.19 |