-
Notifications
You must be signed in to change notification settings - Fork 4
/
common.txt
70 lines (56 loc) · 1.94 KB
/
common.txt
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
59
60
61
62
63
64
65
66
67
68
69
include $(ROOTDIR)/config.txt
INCLUDEDIR=$(ROOTDIR)/include
ALGDIR=$(ROOTDIR)/algorithms
COMBIDIR=$(ROOTDIR)/combinatorial
CONTAINERSDIR=$(ROOTDIR)/containers
MATHDIR=$(ROOTDIR)/math
UTILITYDIR=$(ROOTDIR)/utility
HPCDIR=$(ROOTDIR)/hpc
WRAPPERSDIR=$(ROOTDIR)/wrappers
CUDADIR=$(ROOTDIR)/cuda
SCALARDIR=$(ROOTDIR)/objects/scalar
MATRIXDIR=$(ROOTDIR)/objects/matrix
TENSORDIR=$(ROOTDIR)/objects/tensor
NTENSORDIR=$(ROOTDIR)/objects/ntensor
TENSORVIEWDIR=$(ROOTDIR)/objects/tensor_views
TENSORARRAYDIR=$(ROOTDIR)/objects/tensor_array
BACKENDADIR=$(ROOTDIR)/objects/backendA
BACKENDBDIR=$(ROOTDIR)/objects/backendB
LABELEDDIR=$(ROOTDIR)/objects/labeled
LABELED2DIR=$(ROOTDIR)/objects/labeled2
CNINE_INCLUDES=-I$(INCLUDEDIR) -I$(ALGDIR) -I$(COMBIDIR) -I$(CONTAINERSDIR) -I$(MATHDIR) -I$(UTILITYDIR)
CNINE_INCLUDES+= -I$(HPCDIR) -I$(WRAPPERSDIR) -I$(CUDADIR)
CNINE_INCLUDES+= -I$(SCALARDIR) -I$(MATRIXDIR) -I$(TENSORDIR) -I$(TENSORVIEWDIR)
CNINE_INCLUDES+= -I$(TENSORARRAYDIR) -I$(TENSORARRAYDIR)/cell_maps -I$(TENSORARRAYDIR)/cell_ops
CNINE_INCLUDES+= -I$(NTENSORDIR) -I$(NTENSORDIR)/functions -I$(LABELED2DIR)
CNINE_INCLUDES+=-I$(BACKENDADIR) -I$(BACKENDBDIR)
MANAGEDDIR=$(ROOTDIR)/managed
MSCALARDIR=$(ROOTDIR)/managed/scalar
MTENSORDIR=$(ROOTDIR)/managed/tensor
MTENSORARRAYDIR=$(ROOTDIR)/objects/managed/tensor_array
CNINE_CUDADIR=$(ROOTDIR)/cuda
CENGINE_INCLUDES=-I$(CENGINE_ROOT)/include -I$(CENGINE_ROOT)/engine
CFLAGS= -std=c++17 -O3 #-ferror-limit=1
INCLUDE= -I $(ROOTDIR)/include
LIBS= -lstdc++ -lm -lpthread
#CFLAGS+=-DCNINE_COPY_WARNINGS
#CFLAGS+=-DCNINE_MOVE_WARNINGS
#CFLAGS+=-DCNINE_ASSIGN_WARNINGS
#CFLAGS+=-DCNINE_MOVEASSIGN_WARNINGS
CFLAGS+=-DCNINE_CONVERT_WARNINGS
CFLAGS+=-DCNINE_RANGE_CHECKING
#CFLAGS+=-DCNINE_DEVICE_CHECKING
CFLAGS+=-DWITH_FAKE_GRAD
MACROS=
ifdef CENGINE_ROOT
CFLAGS+=-D_WITH_CENGINE
endif
ifdef EIGENDIR
CFLAGS+=-D_WITH_EIGEN
endif
ifdef WITH_CUDA
MACROS+=-D_WITH_CUDA
endif
ifdef WITH_CUBLAS
MACROS+=-D_WITH_CUBLAS
endif