Centos下安装Parsec

1、按照官网步骤往下执行即可

2、第五大步开始出现问题

[donghua@localhost parsec-3.0]$ parsecmgmt

-a build -p streamcluster

[PARSEC] Packages to build:  parsec.streamcluster


[PARSEC] [========== Building package parsec.streamcluster

[1] ==========]

[PARSEC] [---------- Analyzing package

parsec.streamcluster ----------]

[PARSEC] parsec.streamcluster does not

depend on any other packages.

[PARSEC] [---------- Building package

parsec.streamcluster ----------]

[PARSEC] Copying source code of package

parsec.streamcluster.

[PARSEC] Running 'env version=pthreads

/usr/bin/make':

/usr/bin/g++ -O3 -g -funroll-loops

-fprefetch-loop-arrays -fpermissive -fno-exceptions -static-libgcc

-Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=3.0-beta-20150206

-DENABLE_THREADS -pthread -c streamcluster.cpp

make: /usr/bin/g++:命令未找到

make: *** [streamcluster.o] 错误 127

[PARSEC] Error: 'env version=pthreads

/usr/bin/make' failed.


解决办法:

[root@localhost 桌面]# yum install gcc

[root@localhost 桌面]# yum install gcc-c++

[root@localhost 桌面]# mv /etc/yum.repos.d/CentOS-Base.repo

/etc/yum.repos.d/CentOS-Base.repo.old

[root@localhost 桌面]# wget -O /etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-7.repo

[root@localhost yum.repos.d]# yum makecache

[root@localhost ~]# gcc -v

[root@localhost ~]# yum install g++ upgrade

[root@localhost ~]# yum install gcc

[root@localhost ~]# yum install gdb

[root@localhost ~]# yum install m4


再运行

[donghua@localhost parsec-3.0]$ parsecmgmt

-a build -p blackscholes

[PARSEC] Packages to build:  parsec.blackscholes


[PARSEC] [========== Building package

parsec.blackscholes [1] ==========]

[PARSEC] [---------- Analyzing package

parsec.blackscholes ----------]

[PARSEC] parsec.blackscholes does not depend

on any other packages.

[PARSEC] [---------- Building package

parsec.blackscholes ----------]

[PARSEC] Removing old build directory.

[PARSEC] Copying source code of package

parsec.blackscholes.

[PARSEC] Running 'env version=pthreads

/usr/bin/make':

rm -f blackscholes blackscholes.m4.cpp

/usr/bin/m4 ./c.m4.pthreads blackscholes.c

> blackscholes.m4.cpp

/usr/bin/g++ -O3 -g -funroll-loops-fprefetch-loop-arrays -fpermissive -fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-needed-DPARSEC_VERSION=3.0-beta-20150206 -pthread -DENABLE_THREADS -DNCO=4  blackscholes.m4.cpp -L/usr/lib64-L/usr/lib  -o blackscholes

[PARSEC] Running 'env version=pthreads

/usr/bin/make install':

mkdir -p /home/donghua/下载/parsec-3.0/pkgs/apps/blackscholes/inst/amd64-linux.gcc/bin

cp -f blackscholes /home/donghua/下载/parsec-3.0/pkgs/apps/blackscholes/inst/amd64-linux.gcc/bin/blackscholes

[PARSEC]

[PARSEC] BIBLIOGRAPHY

[PARSEC]

[PARSEC] [1] Bienia. Benchmarking Modern

Multiprocessors. Ph.D. Thesis, 2011.

[PARSEC]

[PARSEC] Done.

[donghua@localhost parsec-3.0]$ parsecmgmt

-a run -p streamcluster

[PARSEC] Benchmarks to run:  parsec.streamcluster


[PARSEC] [========== Running benchmark

parsec.streamcluster [1] ==========]

[PARSEC] Error: Binary '/home/donghua/下载/parsec-3.0/pkgs/kernels/streamcluster/inst/amd64-linux.gcc/bin/streamcluster'

of package 'parsec.streamcluster' cannot be found.


[donghua@localhost parsec-3.0]$ parsecmgmt

-a build -p streamcluster

[donghua@localhost parsec-3.0]$ parsecmgmt

-a run -p streamcluster

参考资料:https://blog.csdn.net/ai297313/article/details/46731131

你可能感兴趣的:(Centos下安装Parsec)