03_shared-memory/00_stream

Hands-on: Building STREAM benchmark

0. Legend

1. Get source file

$ bash 00_dl.sh $ ls stream.v5 # The directory name is specified in 00_dl.sh. In this case, [src_dir] is stream.v5.

2. Preparation

$ cd [src_dir] $ cp [rist_dir]/rist/Makefile.fj . $ cp [rist_dir]/rist/Makefile.fj_zfill .
$ patch -p 1 -d [src_dir] < [rist_dir]/rist/patch.rist patching file stream.c patching file stream.f

3. Set array size

4. Compile

$ cd [src_dir] # We show the case when one choose Makefile.fj_zfill, for example: $ make -f Makefile.fj_zfill &> make.fj_zfill.log $ ls Obj_c.fj_zfill Obj_ctrad.fj_zfill Obj_f.fj_zfill

Note

Makefile.fj #Optimization level is fast. Auto-vectorization is allowed. OpenMP thread is allowed. Makefile.fj_zfill #Optimization level is fast. Auto-vectorization is allowed. OpenMP thread is allowed. ZFILL option is set.