-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
39 lines (26 loc) · 1.05 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
CXX=g++
CXXFLAGS=-std=c++11 -O3 -fno-stack-protector
NVCC=/usr/local/cuda/bin/nvcc
NVCCFLAGS=-arch sm_50 -O3 -Xptxas -dlcm=ca
all: convert-from-dimacs-main.e convert-from-snap-main.e convert-to-latapy-main.e latapy.e create-barabasi-albert-main.e create-watts-strogatz-main.e main.e
convert-from-dimacs-main.e: convert-from-dimacs-main.cpp graph.cpp graph.h
$(CXX) $(CXXFLAGS) $^ -o $@
convert-from-snap-main.e: convert-from-snap-main.cpp graph.cpp graph.h
$(CXX) $(CXXFLAGS) $^ -o $@
convert-to-latapy-main.e: convert-to-latapy-main.cpp graph.cpp graph.h
$(CXX) $(CXXFLAGS) $^ -o $@
latapy.e: latapy.c
$(CXX) $(CXXFLAGS) $^ -o $@
create-barabasi-albert-main.e: create-barabasi-albert-main.cpp graph.cpp graph.h
$(CXX) $(CXXFLAGS) $^ -o $@
create-watts-strogatz-main.e: create-watts-strogatz-main.cpp graph.cpp graph.h
$(CXX) $(CXXFLAGS) $^ -o $@
%.o: %.cu %.h
$(NVCC) $(NVCCFLAGS) -c $< -o $@
%.o: %.cpp %.h
$(CXX) $(CXXFLAGS) -c $< -o $@
main.e: cpu.o gpu.o gpu-thrust.o graph.o main.o timer.o
$(NVCC) $^ -o $@
.PHONY: all clean
clean:
rm -f *.o *.e