-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
60 lines (44 loc) · 1.92 KB
/
Makefile
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
include common.mk
#-------------------------------------------------------------------------------
# Compiler and compilation platform
#-------------------------------------------------------------------------------
# Includes
INC += -I$(MGPU_DIR) -I$(CUB_DIR) -I$(BOOST_DIR) -I$(GRB_DIR)
#-------------------------------------------------------------------------------
# Dependency Lists
#-------------------------------------------------------------------------------
all: gbfs gdiameter gsssp glgc gmis ggc ggc_cusparse gpr gtc gcc
gbfs: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gbfs example/gbfs.cu $(INC) $(GRB_DEPS) $(LIBS)
gdiameter: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gdiameter example/gdiameter.cu $(INC) $(GRB_DEPS) $(LIBS)
gsssp: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gsssp example/gsssp.cu $(INC) $(GRB_DEPS) $(LIBS)
glgc: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/glgc example/glgc.cu $(INC) $(GRB_DEPS) $(LIBS)
gmis: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gmis example/gmis.cu $(INC) $(GRB_DEPS) $(LIBS)
ggc: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/ggc example/ggc.cu $(INC) $(GRB_DEPS) $(LIBS)
ggc_cusparse: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/ggc_cusparse example/ggc_cusparse.cu $(INC) $(GRB_DEPS) $(LIBS)
gpr: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gpr example/gpr.cu $(INC) $(GRB_DEPS) $(LIBS)
gtc: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gtc example/gtc.cu $(INC) $(GRB_DEPS) $(LIBS)
gcc: example/*
mkdir -p bin
nvcc -g $(ARCH) $(OPTIONS) -o bin/gcc example/gcc.cu $(INC) $(GRB_DEPS) $(LIBS)
clean:
rm -f bin/gbfs bin/gdiameter bin/gsssp bin/glgc bin/gmis bin/ggc bin/ggc_cusparse bin/gpr bin/gtc
lint:
scripts/lint.py graphblas cpp $(GRB_DIR)example $(GRB_DIR)graphblas $(GRB_DIR)test --exclude_path $(GRB_DIR)graphblas/backend/sequential