Installing the Software and Configuring the Environment
Procedure
- Upload the STREAM installation package STREAM-master.zip to the /home directory on a server.
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the STREAM installation package:
cd /home unzip STREAM-master.zip
- Run the following command to go to the STREAM-master directory:
cd STREAM-master
- Run the following commands to modify the Makefile file:
- Open the file.
vi Makefile
- Press i to enter the insert mode and edit the Makefile file.
CC = gcc CFLAGS = -O2 -ftree-vectorize -fopenmp -DSTREAM_ARRAY_SIZE=96000000 -DNTIMES=100 -mcmodel=large #FC = gfortran #FFLAGS = -O3 -fopenmp -mcpu=native -ffp-contract=fast -fopenmp all: stream_c.exe
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Run the following command to perform compilation:
make
After the compilation is successful, the executable file stream_c.exe is generated in the current directory. You can run the ll command to view the file. Figure 1 shows the command output.
Parent topic: Stream Testing Guide
