一、下载源码地址:
性能工具 stream 最新版本5.10 The STREAM benchmark
官网下载最新性能工具 stream 最新版本5.10
https://github.com/jeffhammond/STREAM
官网下载最新性能工具 stream 最新版本5.10
http://www.cs.virginia.edu/stream/ref.html
下载命令:wget -o https://github.com/jeffhammond/STREAM
二、编译运行测试
通过make命令或
单独gcc编译:gcc -o3 -fopenmp -mcmodel -mtune=native -DSTREAM_ARRAY_SIZE=200000000 -DNTIME 30 stream.c -o stream
运行:./stream -c 8
切换单线程命令:export OMP_NUM_THREADS=1
运行:./stream -c 1