-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
576 lines (445 loc) · 17.6 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
#########################################################
# GENERAL DIRECTOIRES #
#########################################################
# globals binaary /bin/accel-graph name doesn't need to match main/accel-graph.c
export APP = open-graph
export APP_CAPI = accel-graph
# test name needs to match the file name test/test_accel-graph.c
# export APP_TEST ?= test_open-graph-match
export APP_TEST ?= sweep_order-OpenGraph-performance-graph
# export APP_TEST ?= sweep_order-PR-performance-graph
# export APP_TEST ?= sweep_order-BFS-performance-graph
# export APP_TEST ?= pagerRank-accuracy-report
# export APP_TEST ?= pagerRank-capi-report
# dirs Root app
export APP_DIR = .
export APP_DIR_OPEN_GRAPH = ../00_open_graph/00_graph_bench
export APP_DIR_CAPI_PRECIS = ./01_capi_precis
export CAPI_PRECIS_INTEG_DIR = $(APP_DIR_CAPI_PRECIS)/01_capi_integration
export CAPI_INTEG_DIR = 03_capi_integration
export SCRIPT_DIR = 05_scripts
export BENCHMARKS_DIR_LOCAL = 01_test_graphs
# export BENCHMARKS_DIR = ../../../01_GraphDatasets
#dir root/managed_folders
export SRC_DIR = src
export OBJ_DIR = obj
export INC_DIR = include
export BIN_DIR = bin
export RES_DIR = results
#if you want to compile from cmake you need this directory
#cd build
#cmake ..
export BUILD_DIR = build
# relative directories used for managing src/obj files
export STRUCT_DIR = structures
export PREPRO_DIR = preprocess
export ALGO_DIR = algorithms
export UTIL_DIR = utils
export CAPI_UTIL_DIR = capi_utils
export CONFIG_DIR = config
#contains the tests use make run-test to compile what in this directory
export TEST_DIR = tests
#contains the main for the graph processing framework
export MAIN_DIR = main
##################################################
##################################################
#########################################################
# ACCEL RUN GRAPH ARGUMENTS #
#########################################################
export BENCHMARKS_DIR ?= ../../../01_GraphDatasets
# export BENCHMARKS_DIR ?= ../01_test_graphs
# export GRAPH_SUIT ?=
# export GRAPH_SUIT ?= TEST
export GRAPH_SUIT ?= LAW
# export GRAPH_SUIT ?= GAP
# export GRAPH_SUIT ?= SNAP
# export GRAPH_SUIT ?= KONECT
# export GRAPH_SUIT ?= GONG
# TEST # small test graphs
# export GRAPH_NAME ?= test
# export GRAPH_NAME ?= v51_e1021
# export GRAPH_NAME ?= v300_e2730
# export GRAPH_NAME ?= graphbrew
# GONG # https://gonglab.pratt.duke.edu/google-dataset
# export GRAPH_NAME ?= GONG-gplus
# export GRAPH_NAME ?= Gong-gplus
# GAP # https://sparse.tamu.edu/MM/GAP/
# export GRAPH_NAME ?= GAP-twitter
# export GRAPH_NAME ?= GAP-road
# SNAP # https://snap.stanford.edu/data/
# export GRAPH_NAME ?= SNAP-cit-Patents
# export GRAPH_NAME ?= SNAP-com-Orkut
# export GRAPH_NAME ?= SNAP-soc-LiveJournal1
# export GRAPH_NAME ?= SNAP-soc-Pokec
# export GRAPH_NAME ?= SNAP-web-Google
# KONECT # http://konect.cc/networks/wikipedia_link_en/
# export GRAPH_NAME ?= KONECT-wikipedia_link_en
# LAW # https://sparse.tamu.edu/MM/LAW/
# export GRAPH_NAME ?= LAW-amazon-2008
# export GRAPH_NAME ?= LAW-arabic-2005
# export GRAPH_NAME ?= LAW-cnr-2000
# export GRAPH_NAME ?= LAW-dblp-2010
# export GRAPH_NAME ?= LAW-enron
# export GRAPH_NAME ?= LAW-eu-2005
# export GRAPH_NAME ?= LAW-hollywood-2009
# export GRAPH_NAME ?= LAW-in-2004
# export GRAPH_NAME ?= LAW-indochina-2004
export GRAPH_NAME ?= LAW-it-2004
# export GRAPH_NAME ?= LAW-ljournal-2008
# export GRAPH_NAME ?= LAW-uk-2002
# export GRAPH_NAME ?= LAW-uk-2005
# export GRAPH_NAME ?= LAW-webbase-2001
# export FILE_BIN_TYPE ?= graph
# export FILE_BIN_TYPE ?= graph.bin
# export FILE_BIN_TYPE ?= graph.rand.bin
# export FILE_BIN_TYPE ?= graph.wbin
export FILE_BIN_TYPE ?= graph.bin.txt
# export FILE_BIN_TYPE ?= graph.rand.bin.txt
# export FILE_LABEL_TYPE ?= graph_Gorder.labels
export FILE_LABEL_TYPE ?= graph_Rabbit.labels
#GRAPH file
export FILE_BIN = $(BENCHMARKS_DIR)/$(GRAPH_SUIT)/$(GRAPH_NAME)/$(FILE_BIN_TYPE)
export FILE_LABEL = $(BENCHMARKS_DIR)/$(GRAPH_SUIT)/$(GRAPH_NAME)/$(FILE_LABEL_TYPE)
#ALGORITHM
export ALGORITHMS ?= 1
export PULL_PUSH ?= 0
#GRAPH DATA_STRUCTURES
export SORT_TYPE ?= 0
export DATA_STRUCTURES ?= 0
export REORDER_LAYER1 ?= 0
export REORDER_LAYER2 ?= 0
export REORDER_LAYER3 ?= 0
export CACHE_SIZE ?= 32768 # 32KB
#ALGORITHM SPECIFIC ARGS
export ROOT ?= 1
export TOLERANCE ?= 1e-8
export DELTA ?= 800
export NUM_ITERATIONS ?= 1
#PERFORMANCE
export NUM_THREADS_PRE ?= 4
export NUM_THREADS_ALGO ?= $(shell grep -c ^processor /proc/cpuinfo)
export NUM_THREADS_KER ?= $(NUM_THREADS_ALGO)
# export NUM_THREADS_PRE ?= 1
# export NUM_THREADS_ALGO ?= 1
# export NUM_THREADS_KER ?= $(NUM_THREADS_ALGO)
#EXPERIMENTS
export NUM_TRIALS ?= 1
#GRAPH FROMAT EDGELIST
export FILE_FORMAT ?= 1
export CONVERT_FORMAT ?= 1
#STATS COLLECTION VARIABLES
export BIN_SIZE ?= 1000
export INOUT_STATS ?= 0
export MASK_MODE ?= 0
##################################################
##############################################
# CAPI FPGA AFU PREFETCH CONFIG #
##############################################
#disable both PREFETCH
ENABLE_RD_WR_PREFETCH=0
#enable write PREFETCH
# ENABLE_RD_WR_PREFETCH=1
#enable read PREFETCH
# ENABLE_RD_WR_PREFETCH=2
#enable both PREFETCH
# export ENABLE_RD_WR_PREFETCH=3
##############################################
# CAPI FPGA GRAPH AFU PERFORMANCE CONFIG #
##############################################
# // cu_vertex_job_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00000 [27:31] [4] [3] [0:2]
# // cu_edge_job_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00000 [22:26] [9] [8] [5:7]
# // cu_edge_data_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00000 [22:26] [14] [13] [10:12]
# // cu_edge_data_write_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00000 [22:26] [19] [18] [15:17]
# // 0b 00000 00000 00000 00000 00000 00000 00
export CU_CONFIG_MODE=0x00000000
# // cu_vertex_job_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [27:31] [4] [3] [0:2]
# // 0b 00010 00000 00000 00000 00000 00000 00
# export CU_CONFIG_MODE=0x10000000
# // cu_edge_job_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [9] [8] [5:7]
# // 0b 00000 00010 00000 00000 00000 00000 00
# export CU_CONFIG_MODE=0x00800000
# // cu_edge_data_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [14] [13] [10:12]
# // 0b 00000 00000 00010 00000 00000 00000 00
# export CU_CONFIG_MODE=0x00040000
# // cu_edge_data_write_control 5-bits STRICT | READ_CL_NA | WRITE_MS 00001 [22:26] [19] [18] [15:17]
# // 0b 00000 00000 00000 00001 00000 00000 00
# export CU_CONFIG_MODE=0x00001000
# // cu_vertex_job_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00000 [27:31] [4] [3] [0:2]
# // cu_edge_job_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00000 [22:26] [9] [8] [5:7]
# // cu_edge_data_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [14] [13] [10:12]
# // cu_edge_data_write_control 5-bits STRICT | READ_CL_NA | WRITE_MS 00001 [22:26] [19] [18] [15:17]
# // 0b 00000 00000 00010 00001 00000 00000 00
# export CU_CONFIG_MODE=0x00041000
# // cu_vertex_job_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00010 [27:31] [4] [3] [0:2]
# // cu_edge_job_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [9] [8] [5:7]
# // cu_edge_data_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [14] [13] [10:12]
# // cu_edge_data_write_control 5-bits STRICT | READ_CL_NA | WRITE_MS 00001 [22:26] [19] [18] [15:17]
# // 0b 00000 00010 00010 00001 00000 00000 00
# export CU_CONFIG_MODE=0x00841000
# // cu_vertex_job_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [27:31] [4] [3] [0:2]
# // cu_edge_job_control 5-bits STRICT | READ_CL_NA | WRITE_NA 00010 [22:26] [9] [8] [5:7]
# // cu_edge_data_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [14] [13] [10:12]
# // cu_edge_data_write_control 5-bits STRICT | READ_CL_NA | WRITE_MS 00001 [22:26] [19] [18] [15:17]
# // 0b 00010 00010 00010 00001 00000 00000 00
# export CU_CONFIG_MODE=0x10041000
# // cu_vertex_job_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [27:31] [4] [3] [0:2]
# // cu_edge_job_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [9] [8] [5:7]
# // cu_edge_data_control 5-bits STRICT | READ_CL_S | WRITE_NA 00010 [22:26] [14] [13] [10:12]
# // cu_edge_data_write_control 5-bits STRICT | READ_CL_NA | WRITE_MS 00001 [22:26] [19] [18] [15:17]
# // 0b 00010 00010 00010 00001 00000 00000 00
# export CU_CONFIG_MODE=0x10841000
##############################################
# CAPI FPGA AFU ARBITER CONFIG #
##############################################
# shift credits >>
# read_credits [0:3]
# write_credits [4:7]
# prefetch_read_credits [8:11]
# prefetch_write_credits [12:15]
# FIXED_ARB [62]
# ROUND_ROBIN_ARB [63]
export ROUND_ROBIN_ARB=0x1111000000000001
export FIXED_ARB=0x1111000000000002
##############################################
# CAPI FPGA AFU/CU CONFIG #
##############################################
export AFU_CONFIG_MODE=$(ROUND_ROBIN_ARB)
# export AFU_CONFIG_MODE=$(FIXED_ARB)
export CU_CONFIG_GENERIC=$(CU_CONFIG_MODE)
export AFU_CONFIG_GENERIC=$(AFU_CONFIG_MODE)
##################################################
APP_DIR = .
MAKE_DIR_ACCELGRAPH = 02_capi_graph
MAKE_DIR_OPENGRAPH = 00_open_graph
MAKE_DIR_SYNTH = $(CAPI_INTEG_DIR)/$(SYNTH_DIR)
MAKE_NUM_THREADS = $(shell grep -c ^processor /proc/cpuinfo)
MAKE_ARGS_OPENGRAPH = -C $(APP_DIR)/$(MAKE_DIR_OPENGRAPH) -j$(MAKE_NUM_THREADS)
MAKE_ARGS_ACCELGRAPH = -w -C $(APP_DIR)/$(MAKE_DIR_ACCELGRAPH) -j$(MAKE_NUM_THREADS)
MAKE_ARGS_SYNTH = -w -C $(APP_DIR)/$(MAKE_DIR_SYNTH) -j$(MAKE_NUM_THREADS)
#########################################################
# RUN ARGUMENTS #
#########################################################
export ARGS ?= -w -M $(MASK_MODE) -j $(INOUT_STATS) -g $(BIN_SIZE) -z $(FILE_FORMAT) -d $(DATA_STRUCTURES) -a $(ALGORITHMS) -r $(ROOT) -n $(NUM_THREADS_PRE) -N $(NUM_THREADS_ALGO) -K $(NUM_THREADS_KER) -i $(NUM_ITERATIONS) -o $(SORT_TYPE) -p $(PULL_PUSH) -t $(NUM_TRIALS) -e $(TOLERANCE) -F $(FILE_LABEL) -l $(REORDER_LAYER1) -L $(REORDER_LAYER2) -O $(REORDER_LAYER3) -b $(DELTA) -C $(CACHE_SIZE)
export ARGS_CAPI = -q $(CU_CONFIG_GENERIC) -m $(AFU_CONFIG_GENERIC) $(ARGS)
##################################################
##################################################
##############################################
# ACCEL GRAPH TOP LEVEL RULES #
##############################################
.PHONY: help
help:
$(MAKE) help $(MAKE_ARGS_OPENGRAPH)
.PHONY: run
run:
$(MAKE) run $(MAKE_ARGS_OPENGRAPH)
.PHONY: sweep-run
sweep-run:
$(MAKE) run-test $(MAKE_ARGS_OPENGRAPH)
.PHONY: run-openmp
run-openmp:
$(MAKE) run-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: convert
convert:
$(MAKE) convert $(MAKE_ARGS_OPENGRAPH)
.PHONY: sweep-convert
sweep-convert:
$(MAKE) sweep-convert $(MAKE_ARGS_OPENGRAPH)
.PHONY: sweep-convert-2
sweep-convert-2:
$(MAKE) sweep-convert-2 $(MAKE_ARGS_OPENGRAPH)
.PHONY: convert-w
convert-w:
$(MAKE) convert-w $(MAKE_ARGS_OPENGRAPH)
.PHONY: stats-openmp
stats-openmp:
$(MAKE) stats-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: debug-openmp
debug-openmp:
$(MAKE) debug-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: debug-memory-openmp
debug-memory-openmp:
$(MAKE) debug-memory-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: test-verbose
test-verbose:
$(MAKE) test-verbose $(MAKE_ARGS_OPENGRAPH)
# test files
.PHONY: test
test:
$(MAKE) test $(MAKE_ARGS_OPENGRAPH)
.PHONY: run-test
run-test:
$(MAKE) run-test $(MAKE_ARGS_OPENGRAPH)
.PHONY: run-test-openmp
run-test-openmp:
$(MAKE) run-test-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: debug-test-openmp
debug-test-openmp:
$(MAKE) debug-test-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: debug-memory-test-openmp
debug-memory-test-openmp:
$(MAKE) debug-memory-test-openmp $(MAKE_ARGS_OPENGRAPH)
# cache performance
.PHONY: cachegrind-perf-openmp
cachegrind-perf-openmp:
$(MAKE) cachegrind-perf-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: cache-perf
cache-perf-openmp:
$(MAKE) cache-perf-openmp $(MAKE_ARGS_OPENGRAPH)
.PHONY: clean
clean:
$(MAKE) clean $(MAKE_ARGS_OPENGRAPH)
$(MAKE) clean $(MAKE_ARGS_ACCELGRAPH)
.PHONY: clean-obj
clean-obj:
$(MAKE) clean-obj $(MAKE_ARGS_OPENGRAPH)
$(MAKE) clean-obj $(MAKE_ARGS_ACCELGRAPH)
.PHONY: clean-all
clean-all: clean
.PHONY: scrub
scrub: clean clean-nohup clean-stats clean-sim clean-synth-all
$(MAKE) scrub $(MAKE_ARGS_OPENGRAPH)
$(MAKE) scrub $(MAKE_ARGS_ACCELGRAPH)
.PHONY: clean-stats
clean-stats:
$(MAKE) clean-stats $(MAKE_ARGS_OPENGRAPH)
.PHONY: clean-nohup
clean-nohup:
@rm -f $(APP_DIR)/nohup.out
##################################################
##################################################
##############################################
# Simulation/Synthesis CONFIG #
##############################################
# put your design in 01_capi_integration/accelerator_rtl/cu/$CU(algorithm name)
#
export PART=5SGXMA7H2F35C2
export PROJECT = accel-graph
export CU_SET_SIM=$(shell python ./$(SCRIPT_DIR)/choose_algorithm_sim.py $(DATA_STRUCTURES) $(ALGORITHMS) $(PULL_PUSH) $(NUM_THREADS_KER))
export CU_SET_SYNTH=$(shell python ./$(SCRIPT_DIR)/choose_algorithm_synth.py $(DATA_STRUCTURES) $(ALGORITHMS) $(PULL_PUSH))
export CU_GRAPH_ALGORITHM = $(word 1, $(CU_SET_SYNTH))
export CU_DATA_STRUCTURE = $(word 2, $(CU_SET_SYNTH))
export CU_DIRECTION = $(word 3, $(CU_SET_SYNTH))
export CU_PRECISION = $(word 4, $(CU_SET_SYNTH))
export VERSION_GIT = $(shell python ./$(SCRIPT_DIR)/version.py)
export TIME_STAMP = $(shell date +%Y_%m_%d_%H_%M_%S)
export SYNTH_DIR = synthesize_$(CU_GRAPH_ALGORITHM)_$(CU_DATA_STRUCTURE)_$(CU_DIRECTION)_$(CU_PRECISION)_CU$(NUM_THREADS_KER)
# export CU = cu_PageRank_pull
##############################################
# ACCEL GRAPH CAPI TOP LEVEL RULES #
##############################################
.PHONY: run-capi-sim
run-capi-sim:
$(MAKE) run-capi-sim $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-fpga
run-capi-fpga:
$(MAKE) run-capi-fpga $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-sim-verbose
run-capi-sim-verbose:
$(MAKE) run-capi-sim-verbose $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-sim-verbose2
run-capi-sim-verbose2:
$(MAKE) run-capi-sim-verbose2 $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-sim-verbose3
run-capi-sim-verbose3:
$(MAKE) run-capi-sim-verbose3 $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-fpga-verbose
run-capi-fpga-verbose:
$(MAKE) run-capi-fpga-verbose $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-fpga-verbose2
run-capi-fpga-verbose2:
$(MAKE) run-capi-fpga-verbose2 $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-capi-fpga-verbose3
run-capi-fpga-verbose3:
$(MAKE) run-capi-fpga-verbose3 $(MAKE_ARGS_ACCELGRAPH)
.PHONY: capi
capi:
$(MAKE) run-capi-fpga-verbose2 $(MAKE_ARGS_ACCELGRAPH) &&\
sudo ./$(SCRIPT_DIR)/clear_cache.sh
.PHONY: run-test-capi
run-test-capi:
$(MAKE) run-test-capi $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-test-capi-sim
run-test-capi-sim:
$(MAKE) run-test-capi-sim $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-vsim
run-vsim:
$(MAKE) run-vsim $(MAKE_ARGS_ACCELGRAPH)
.PHONY: run-pslse
run-pslse:
$(MAKE) run-pslse $(MAKE_ARGS_ACCELGRAPH)
.PHONY: build-pslse
build-pslse:
$(MAKE) build-pslse $(MAKE_ARGS_ACCELGRAPH)
.PHONY: clean-sim
clean-sim:
$(MAKE) clean-sim $(MAKE_ARGS_ACCELGRAPH)
.PHONY: clean-accel
clean-accel:
$(MAKE) clean $(MAKE_ARGS_ACCELGRAPH)
.PHONY: law-capi
law-capi:
$(MAKE) law-capi $(MAKE_ARGS_ACCELGRAPH)
.PHONY: mix-capi
mix-capi:
$(MAKE) mix-capi $(MAKE_ARGS_ACCELGRAPH)
##################################################
##################################################
##############################################
# ACCEL SYNTHESIZE LEVEL RULES #
##############################################
.PHONY: run-synth
run-synth: synth-directories
$(MAKE) all $(MAKE_ARGS_SYNTH)
.PHONY: run-synth-gui
run-synth-gui: synth-directories
$(MAKE) gui $(MAKE_ARGS_SYNTH)
.PHONY: run-synth-sweep
run-synth-sweep: synth-directories
$(MAKE) sweep $(MAKE_ARGS_SYNTH)
.PHONY: map
map: synth-directories
$(MAKE) map $(MAKE_ARGS_SYNTH)
.PHONY: fit
fit: synth-directories
$(MAKE) fit $(MAKE_ARGS_SYNTH)
.PHONY: asm
asm: synth-directories
$(MAKE) asm $(MAKE_ARGS_SYNTH)
.PHONY: sta
sta: synth-directories
$(MAKE) sta $(MAKE_ARGS_SYNTH)
.PHONY: qxp
qxp: synth-directories
$(MAKE) qxp $(MAKE_ARGS_SYNTH)
.PHONY: rbf
rbf: synth-directories
$(MAKE) rbf $(MAKE_ARGS_SYNTH)
.PHONY: smart
smart: synth-directories
$(MAKE) smart $(MAKE_ARGS_SYNTH)
.PHONY: program
program: synth-directories
$(MAKE) program $(MAKE_ARGS_SYNTH)
.PHONY: timing
timing: synth-directories
$(MAKE) timing $(MAKE_ARGS_SYNTH)
.PHONY: gen-rbf
gen-rbf: synth-directories
$(MAKE) gen-rbf $(MAKE_ARGS_SYNTH)
.PHONY:copy-rbf
copy-rbf: synth-directories
$(MAKE) copy-rbf $(MAKE_ARGS_SYNTH)
.PHONY: clean-synth
clean-synth:
$(MAKE) clean $(MAKE_ARGS_SYNTH)
.PHONY: clean-synth-all
clean-synth-all:
@rm -rf $(APP_DIR)/$(CAPI_INTEG_DIR)/synthesize_*
.PHONY: synth-directories
synth-directories : $(APP_DIR)/$(CAPI_INTEG_DIR)/$(SYNTH_DIR)
.PHONY: $(APP_DIR)/$(CAPI_INTEG_DIR)/$(SYNTH_DIR)
$(APP_DIR)/$(CAPI_INTEG_DIR)/$(SYNTH_DIR) :
@mkdir -p $(APP_DIR)/$(CAPI_INTEG_DIR)/$(SYNTH_DIR)
@cp -a $(APP_DIR)/$(CAPI_INTEG_DIR)/accelerator_synth/* $(APP_DIR)/$(CAPI_INTEG_DIR)/$(SYNTH_DIR)
##################################################
##################################################