如何静态编译parsec的benchmark

论坛 期权论坛 期权     
筱果°A1B05249   2017-8-26 11:29   12148   1
如何静态编译parsec的benchmark
分享到 :
0 人收藏

1 个回复

倒序浏览
2#
热心网友  15级至尊 | 2017-8-27 22:39:41
Step01 配置环境

You can modify your environment to make the PARSEC tools and its

  man pages available at the command line (without full path)

The env.sh script in the PARSEC root directory will do that for you

Source it as follows (example assumes bash shell):

  source env.sh

If you use PARSEC a lot you can add that to your login scripts to

  have it always available

根据介绍,在终端进入parsec-3.0文件夹,键入命令:
$ source env.sh11

Step02 编译benchmark

Use the following command to get some help:

  parsecmgmt -h

You can build a PARSEC workload as follows:

  parsecmgmt -a build -p [suite].[PACKAGE]

Flag ‘-a’ specifies the desired action, flag ‘-p’ gives one or more

  packages

‘parsecmgmt -a info’ gives you a list of all available packages

根据pdf说明,想要知道可以build的benchmark的列表,输入命令:
$ parsecmgmt -a info
[PARSEC] PARSEC Distribution v3.0-beta-20150206
[PARSEC]
[PARSEC] PACKAGES
[PARSEC]
[PARSEC] parsec.blackscholes [1] (computational finance)
[PARSEC] Prices a portfolio of options
[PARSEC]   Package Group: apps
[PARSEC]   Contributor:   Intel Corp.
[PARSEC]   Aliases:       all workload parsec apps pthreads tbb openmp
[PARSEC]
[PARSEC] parsec.bodytrack [1] (computer vision)
[PARSEC] Tracks a human body through space
[PARSEC]   Package Group: apps
[PARSEC]   Contributor:   Intel Corp.
[PARSEC]   Aliases:       all workload parsec apps pthreads tbb openmp
[PARSEC]
[PARSEC] parsec.canneal [1] (engineering)
[PARSEC] Optimizes the routing of a chip design
[PARSEC]   Package Group: kernels
[PARSEC]   Contributor:   Princeton University
[PARSEC]   Aliases:       all workload parsec kernels pthreads
……12345678910111213141516171819202122231234567891011121314151617181920212223

编译举例,编译blackscholes:
$ parsecmgmt -a build -p blackscholes
[PARSEC] Packages to build:  parsec.blackscholes

[PARSEC] [========== Building package parsec.blackscholes [1] ==========]
……
[PARSEC] [1] Bienia. Benchmarking Modern Multiprocessors. Ph.D. Thesis, 2011.
[PARSEC]
[PARSEC] Done.1234567812345678

此时,可执行文件在路径/parsec-3.0/pkgs/apps/blackscholes/inst/amd64-linux.gcc/bin下。

Step03 产生脚本.rcS文件

在parsec-3.0文件夹中写入一个writescripts.pl文件(代码见附录),输入
./writescripts.pl  
产生相应的.rcS文件。
举例,输入命令如下:
$ ./writescripts.pl blackscholes 411

会产生脚本文件如下:
blackscholes_4c_simdev.rcS     blackscholes_4c_simsmall.rcS
blackscholes_4c_simlarge.rcS   blackscholes_4c_test.rcS
blackscholes_4c_simmedium.rcS123123

Step04 关于输入文件

上一步脚本文件中的test、simsmall、simmedium、simlarge、simdev对应的输入文件均在/parsec-3.0/pkgs/apps/blackscholes/inputs路径下,解压对应文件即可:
$parsec-3.0$ ls ./pkgs/apps/blackscholes/inputs
input_simdev.tar    input_simmedium.tar  input_test.tar
input_simlarge.tar  input_simsmall.tar123123

Step05 将benchmark所需文件mount进模拟系统

清单:
可执行文件 eg. blackscholes
输入文件 eg. in_4k.txt
执行文本 eg. blackscholes_4c_simsmall.rcS

其中,前两项mount进模拟系统,过程参考GemFI-Full System全系统仿真。
最后一项放到相应的位置即可。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:
帖子:
精华:
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP