DTpAhR.png
github
https://github.com/01org/tbb/releases

编译

cd 
wget https://codeload.github.com/01org/tbb/tar.gz/2019_U3
tar zxvf tbb-2019_U3.tar.gz
cd tbb-2019_U3
make 
cd build
chmod +x *.sh
sh generate_tbbvars.sh
sh tbbvars.sh

cd linux_intel64_gcc_cc4.8.5_libc2.17_kernel3.10.0_release/
cp *.so /usr/lib
cp *.so.2 /usr/lib
/sbin/ldconfig

cd /root/tbb-2019_U3/include
cp -r * /usr/local/include/

验证

cd /root/tbb-2019_U3/examples/pipeline/square
make 
g++ -O2 -DNDEBUG  -o square square.cpp gen_input.cpp -ltbb -lrt 
./square 0 input.txt output.txt
serial run   time = 0.209541
parallel run time = 0.0371328
elapsed time : 0.388133 seconds

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code