-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·33 lines (23 loc) · 859 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
exe=trianglecounting.bin
N=1
cucc= "$(shell which nvcc)"
cc= "$(shell which mpicxx)"
commflags=-lcudart -L"$(shell dirname $(cucc))"/../lib64
cuflags= --compiler-options -v -Xcudafe -\# --resource-usage
objs = $(patsubst %.cu,%.o,$(wildcard *.cu)) \
$(patsubst %.cpp,%.o,$(wildcard *.cpp))
deps = $(wildcard ./*.cuh) \
$(wildcard ./*.hpp) \
$(wildcard ./*.h) \
%.o:%.cu $(deps)
$(cucc) -c $(cuflags) $< -o $@
%.o:%.cpp $(deps)
$(cc) -c $< -o $@
$(exe):$(objs)
$(cc) $(objs) $(commflags) -o $(exe)
test:$(exe)
@#mpirun -n $(N) cuda-memcheck $(exe) /gpfs/alpine/proj-shared/csc289/trianglecounting/snap/p2p-Gnutella08_adj/ $(N) 32 1 32 0 0
mpirun -n $(N) $(exe) data/p2p08/input $(N) 128 1280 32 0 0
@#mpirun -n $(N) $(exe) /gpfs/alpine/proj-shared/csc289/trianglecounting/snap/email-EuAll_adj/ $(N) 32 1 32 0 0
clean:
rm -rf *.o ${exe}