Skip to content

Commit

Permalink
Tweaks for the HiFive Unleashed
Browse files Browse the repository at this point in the history
    [palmer@hifiveu017 coremark]$ cat /sys/devices/platform/soc/*prci/rate
    999999990
    [palmer@hifiveu017 coremark]$ make -B && cat run1.log
    make XCFLAGS=" -DPERFORMANCE_RUN=1" load run1.log
    make[1]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make port_prebuild
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_prebuild'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make link
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    mkdir -p ./
    gcc -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10 -Ilinux64 -I. -DFLAGS_STR=\""-O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10 -DPERFORMANCE_RUN=1  -lrt"\" -DITERATIONS=0 -DPERFORMANCE_RUN=1 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c linux64/core_portme.c -o ./coremark.exe -lrt
    Link performed along with compile
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make port_postbuild
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_postbuild'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make port_preload
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_preload'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    echo Loading done ./coremark.exe
    Loading done ./coremark.exe
    make port_postload
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_postload'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make port_prerun
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_prerun'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    ./coremark.exe  0x0 0x0 0x66 0 7 1 2000 > ./run1.log
    ^Amake port_postrun
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_postrun'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make[1]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make XCFLAGS=" -DVALIDATION_RUN=1" load run2.log
    make[1]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make port_prebuild
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_prebuild'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make link
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    mkdir -p ./
    gcc -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10 -Ilinux64 -I. -DFLAGS_STR=\""-O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10 -DVALIDATION_RUN=1  -lrt"\" -DITERATIONS=0 -DVALIDATION_RUN=1 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c linux64/core_portme.c -o ./coremark.exe -lrt
    Link performed along with compile
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make port_postbuild
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_postbuild'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make port_preload
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_preload'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    echo Loading done ./coremark.exe
    Loading done ./coremark.exe
    make port_postload
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_postload'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make port_prerun
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_prerun'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    ./coremark.exe  0x3415 0x3415 0x66 0 7 1 2000  > ./run2.log
    make port_postrun
    make[2]: Entering directory '/home/palmer/sifive-coremark/coremark'
    make[2]: Nothing to be done for 'port_postrun'.
    make[2]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    make[1]: Leaving directory '/home/palmer/sifive-coremark/coremark'
    Check run1.log and run2.log for results.
    See README.md for run and reporting rules.
    2K performance run parameters for coremark.
    CoreMark Size    : 666
    Total ticks      : 14854
    Total time (secs): 14.854000
    Iterations/Sec   : 2692.877339
    Iterations       : 40000
    Compiler version : GCC8.2.1 20180801 (Red Hat 8.2.1-2)
    Compiler flags   : -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10 -DPERFORMANCE_RUN=1  -lrt
    Memory location  : Please put data memory location here
                            (e.g. code in flash, data on heap etc)
    seedcrc          : 0xe9f5
    [0]crclist       : 0xe714
    [0]crcmatrix     : 0x1fd7
    [0]crcstate      : 0x8e3a
    [0]crcfinal      : 0x25b5
    Correct operation validated. See README.md for run and reporting rules.
    CoreMark 1.0 : 2692.877339 / GCC8.2.1 20180801 (Red Hat 8.2.1-2) -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10 -DPERFORMANCE_RUN=1  -lrt / Heap

Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
  • Loading branch information
palmer-dabbelt committed Nov 28, 2018
1 parent e053570 commit 287f632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linux64/core_portme.h
Expand Up @@ -99,7 +99,7 @@ typedef unsigned short ee_u16;
typedef signed int ee_s32;
typedef double ee_f32;
typedef unsigned char ee_u8;
typedef unsigned int ee_u32;
typedef signed int ee_u32;
typedef unsigned long long ee_ptr_int;
typedef size_t ee_size_t;
/* align an offset to point to a 32b value */
Expand Down
2 changes: 1 addition & 1 deletion linux64/core_portme.mak
Expand Up @@ -24,7 +24,7 @@ OUTFLAG= -o
CC = gcc
# Flag: CFLAGS
# Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
PORT_CFLAGS = -O2
PORT_CFLAGS = -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4 --param inline-min-speedup=10
FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)"
CFLAGS = $(PORT_CFLAGS) -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
#Flag: LFLAGS_END
Expand Down

0 comments on commit 287f632

Please sign in to comment.