1. PARSEC 介绍
The Princeton Application Repository for Shared-Memory Computers (PARSEC) is a benchmark suite composed of multithreaded programs. The suite focuses on emerging workloads and was designed to be representative of next-generation shared-memory programs for chip multiprocessors.
PARSEC 是普林斯顿大学的一个测试集,主要用于测试处理器执行 multi-thread 程序时的性能。
2. 安装
2.1 下载
2.2 安装
# 解压文件
tar -zxvf parsec-3.0.tar.gz
cd parsec-3.0
# 添加环境变量(parsecmgmt)
source env.sh
2.3 常用命令
#查看当前所有程序的状态
parsecmgmt -a status
# 查看支持的包,以及特性
parsecmgmt -a info
parsecmgmt -a build
2.4 遇到的问题
在安装过程中,主要遇到了版本不匹配,缺少库等问题,经过查找,发现一个在ubuntu18.04 上的安装脚本:
parsec3_on_ubuntu
在运行此脚本时,需要修改两个位置,才能保证正常使用:
- _patch 脚本中的版本信息
# 修改成与自己版本相同
if [ "$(cat /etc/issue)" = "Ubuntu 18.04.6 LTS \n \l" ];
- 更换 gcc 版本,使用 gcc-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 20
sudo update-alternatives --config gcc