-
Notifications
You must be signed in to change notification settings - Fork 6
/
makefile
37 lines (26 loc) · 892 Bytes
/
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
CC = nvcc
CFLAGS = -O3 -gencode arch=compute_20,code=sm_21
LANCZLIBS = -lcublas -lcusparse
HAMLIBS = -Lsort/sort/gnu/release -lmgpusort -lcuda -lcudart
OBJS = launcher.o lanczos.o hamiltonian.o heisenberg.o xy.o tfising.o lattice.o
all: a.out
debug: CFLAGS += -g -G
debug: a.out
a.out : $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o a.out $(HAMLIBS) $(LANCZLIBS)
launcher.o : launcher.cu lanczos.h lattice.h
$(CC) $(CFLAGS) -c launcher.cu
lanczos.o : lanczos.cu lanczos.h
$(CC) $(CFLAGS) -c $(LANCZLIBS) lanczos.cu
hamiltonian.o : hamiltonian.cu hamiltonian.h
$(CC) $(CFLAGS) -c $(HAMLIBS) hamiltonian.cu
heisenberg.o : heisenberg.cu hamiltonian.h
$(CC) $(CFLAGS) -c heisenberg.cu
xy.o : xy.cu hamiltonian.h
$(CC) $(CFLAGS) -c xy.cu
tfising.o : tfising.cu hamiltonian.h
$(CC) $(CFLAGS) -c tfising.cu
lattice.o : lattice.cpp lattice.h
$(CC) $(CFLAGS) -c lattice.cpp
clean :
rm *.o