---
title: 工具安装
description: "1. 下载STREAM 软件包(https://www.cs.virginia.edu/stream/FTP/Code/)。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/KunpengDeveloper/usermanual/topic_0000002566415865.html
sourcePath: /source/zh/kunpenghpcs/KunpengDeveloper/usermanual/topic_0000002566415865.html
indexId: b36ae98fe94284e7d5215dc3b442c9fb582b67b6149d9be1ec5ca717f9dc341e78
---
# 工具安装

1. 下载STREAM 软件包(https://www.cs.virginia.edu/stream/FTP/Code/)。
2. 使用gcc编译stream.c，编译宏STREAM_ARRAY_SIZE为测试数组大小，NTIMES为测试次数，参考编译命令：

```
gcc -O3 -fopenmp -DSTREAM_ARRAY_SIZE=141648512 -DNTIMES=200 stream.c -o stream_c.exe
```


  编译后得到的 stream_c.exe 即为可执行测试文件。
