forked from aws/aws-fpga
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (40 loc) · 1.03 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
TARGET := hw
build: xclbin host
run: build
./host ./vadd.xclbin
vadd.xo: ../src/vadd.cpp
v++ -c -g -t $(TARGET) -R 1 -k vadd \
--profile_kernel data:all:all:all \
--profile_kernel stall:all:all:all \
--save-temps \
--temp_dir ./temp_dir \
--report_dir ./report_dir \
--log_dir ./log_dir \
--config ./options.cfg \
-I../src \
../src/vadd.cpp \
-o ./vadd.xo
vadd.xclbin: vadd.xo
v++ -l -g -t $(TARGET) -R 1 \
--profile_kernel data:all:all:all \
--profile_kernel stall:all:all:all \
--temp_dir ./temp_dir \
--report_dir ./report_dir \
--log_dir ./log_dir \
--config ./options.cfg \
-I../src \
vadd.xo \
-o vadd.xclbin
host: ../src/host.cpp ../src/host.hpp
g++ -D__USE_XOPEN2K8 \
-I$(XILINX_XRT)/include/ \
-I./src \
-O3 -Wall -fmessage-length=0 -std=c++11\
../src/host.cpp \
-L$(XILINX_XRT)/lib/ \
-lxilinxopencl -lpthread -lrt \
-o ./host
xclbin: vadd.xclbin
xo: vadd.xo
clean:
rm -rf temp_dir log_dir report_dir *log host vadd.* *.csv *summary .run .Xil vitis* xclbin *.protoinst *.wdb *.wcfg