-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (57 loc) · 2.03 KB
/
Copy pathMakefile
File metadata and controls
58 lines (57 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#-----------------------------------
CHECK_PARAMS = -DCHECK
#------ TYPES-----------------------
# DTYPE = -DINT32
# DTYPE = -DINT32t
# DTYPE = -DINT16t
# DTYPE = -DINT8t
# DTYPE = -DU_CHART
DTYPE = -DS_CHART
# DTYPE = -DFP16
# DTYPE = -DFP32
# DTYPE = -DFP64
#----------------------------------------------------------------------
# -DpackBc : pack Bc L3-->L2-->L3
# -DpackCc : pack Cc L3-->L2
# -DunpackCc : unpack C L2-->reg
# -DcpBr : copy Br L3-->L1
# -DstrAr : load Ar
# -DstrBr : load Br
# -DstrCc : store C
PACKS = -DpackBc -DpackCc -DpackCc -DunpackCc -DcpBr
MK = -Dmk_4x4
STREAM = -DstrAr -DstrBr -DstrCc
DOT = -Darithmetic
#-----------------------------------------------------------------------
# GAP8
APP = test_gemm
APP_SRCS = test_gemm.c sutils.c gemm_blis.c gemm_blis_riscv_gapduino_int.c
#APP_CFLAGS = -O2 -g3 $(CHECK_PARAMS) $(DTYPE) $(PACKS) $(MK) $(STREAM) $(DOT)
APP_CFLAGS = -O -g $(CHECK_PARAMS) $(DTYPE) $(MK) $(PACKS) $(STREAM) $(DOT)
include $(RULES_DIR)/pmsis_rules.mk
#-----------------------------------------------------------------------
# RVV .7
#EPI_TOOLCHAIN=/shared_folder/llvm-EPI-0.7-development-toolchain-native/
#EPI_CC=$(EPI_TOOLCHAIN)/bin/clang
#CC=$(EPI_CC) -v -mepi -fno-vectorize -Wall
#OPTFLAGS = #-O2
#LDFLAGS = -lm
#---------------------------------------------------------
# RVV 1.0
#CC = riscv64-unknown-linux-gnu-gcc
#CFLAGS = -static
#CLINKER = riscv64-unknown-linux-gnu-gcc
#OPTFLAGS = -O3
#---------------------------------------------------------
#TEST_GEMM = test_gemm.x
#default: $(TEST_GEMM)
#test_gemm.x: test_gemm.o sutils.o gemm_blis.o gemm_blis_riscv_gapduino_int32.o
# $(CC) $(OPTFLAGS) -o test_gemm.x test_gemm.o sutils.o gemm_blis.o gemm_blis_riscv_gapduino_int32.o $(LDFLAGS)
#---------------------------------------------------------
#.c.o:
# $(CC) $(OPTFLAGS) $(CHECK_PARAMS) $(DTYPE) -c $*.c
#---------------------------------------------------------
#clean:
# rm -f *.o
# rm -f $(TEST_GEMM)
#-----------------------------------