diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-05-22 14:52:40 -0700 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2023-05-22 14:52:40 -0700 |
commit | 044a6a06f2a35d22c4d13c9a0336125af87b62ca (patch) | |
tree | 8ab987224c96eb5509b757c97853c82dce2d8147 /benchmarks/Makefile | |
parent | f22a2108c4eabe7313c698ed04024b73850d405e (diff) | |
download | riscv-tests-044a6a06f2a35d22c4d13c9a0336125af87b62ca.zip riscv-tests-044a6a06f2a35d22c4d13c9a0336125af87b62ca.tar.gz riscv-tests-044a6a06f2a35d22c4d13c9a0336125af87b62ca.tar.bz2 |
Add scalar single-threaded/mt memcpy
Diffstat (limited to 'benchmarks/Makefile')
-rw-r--r-- | benchmarks/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index c9469e2..8f40e42 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -23,12 +23,14 @@ bmarks = \ rsort \ towers \ vvadd \ + memcpy \ multiply \ mm \ dhrystone \ spmv \ mt-vvadd \ mt-matmul \ + mt-memcpy \ pmp \ #-------------------------------------------------------------------- @@ -37,7 +39,7 @@ bmarks = \ RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf- RISCV_GCC ?= $(RISCV_PREFIX)gcc -RISCV_GCC_OPTS ?= -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns +RISCV_GCC_OPTS ?= -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -march=rv$(XLEN)gc -mabi=lp64d RISCV_LINK ?= $(RISCV_GCC) -T $(src_dir)/common/test.ld $(incs) RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lm -lgcc -T $(src_dir)/common/test.ld RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data @@ -48,7 +50,7 @@ objs := define compile_template $(1).riscv: $(wildcard $(src_dir)/$(1)/*) $(wildcard $(src_dir)/common/*) - $$(RISCV_GCC) $$(incs) $$(RISCV_GCC_OPTS) -o $$@ $(wildcard $(src_dir)/$(1)/*.c) $(wildcard $(src_dir)/common/*.c) $(wildcard $(src_dir)/common/*.S) $$(RISCV_LINK_OPTS) + $$(RISCV_GCC) $$(incs) $$(RISCV_GCC_OPTS) -o $$@ $(wildcard $(src_dir)/$(1)/*.c) $(wildcard $(src_dir)/$(1)/*.S) $(wildcard $(src_dir)/common/*.c) $(wildcard $(src_dir)/common/*.S) $$(RISCV_LINK_OPTS) endef $(foreach bmark,$(bmarks),$(eval $(call compile_template,$(bmark)))) |