stream1:gcc -fopenmp -D_OPENMP stream.c -o stream &&export OMP_NUM_THREADS=1&&export GOMP_CPU_AFFINITY=0&&./stream
stream64:gcc -fopenmp -O3 -DSTREAM_ARRAY_SIZE=2000000000 -DNTIMES=80 -mcmodel=large stream.c -o stream &&export OMP_NUM_THREADS=64&&export GOMP_CPU_AFFINITY=0-63&&./stream
stream4:gcc -fopenmp -O3 -DSTREAM_ARRAY_SIZE=2000000000 -DNTIMES=80 stream.c -o stream &&export OMP_NUM_THREADS=4&&export GOMP_CPU_AFFINITY=0-3&&./stream
调优:修改stream.c里defind N 值 define N =L310244.1/8 取整数