-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (38 loc) · 1.25 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
CFLAGS = -Wall -Wextra
POINTS = 100000000
.PHONY: build clean debug re
all: build c run plot
build: *.h find_events.cu
nvcc -lnvToolsExt -rdc=true -gencode arch=compute_50,code=compute_50 find_events.cu -o find_events
clean:
-trash find_events
-trash transitions_guessed_canny.csv
-trash transitions_guessed_delta.csv
-trash transitions_guessed_mean.csv
-trash transitions_guessed_c.csv
-trash signal.csv
-trash signal.dat
-trash generated_signal.png
debug: *.h find_events.cu
nvcc -rdc=true -gencode arch=compute_50,code=compute_50 --ptxas-options=-v -g -G find_events.cu -o find_events
re: # thanks, -j4...
make clean
make build
@echo "Cleaned and recompiled..."
signal.csv:
python signal_generator.py $(POINTS)
signal.dat: signal.csv
python text_to_binary.py signal.csv
python plot_data.py one signal.csv
run: c build signal.dat # usage here is that the data as argv[2], with the correct option at compile-time
./find_events mean
./find_events delta
./find_events canny
c: build signal.dat
./find_events c
csv: build signal.csv # usage here is that the data as argv[2], with the correct option at compile-time
./find_events mean signal.csv
./find_events delta signal.csv
./find_events canny signal.csv
plot: c run
python plot_csv.py signal.csv