Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup makefile prerequisites for run/run_py in ml/vision programming examples #1891

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion programming_examples/ml/bottleneck/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ clean:
chess* *.o insts.txt \
*.log aie_partition.json *.bin BOOT.BIN _x test.exe

run_py:
run_py: build/final.xclbin
${powershell} python3 ${srcdir}/test.py -x build/final.xclbin -i build/insts.txt -k MLIR_AIE
2 changes: 1 addition & 1 deletion programming_examples/ml/conv2d/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build/final.xclbin: build/${mlirFileName}.mlir build/conv2dk1_i8.o
--no-xchesscc --no-xbridge \
--xclbin-name=${@F} --npu-insts-name=insts.txt $(<:%=../%)

run_py: build/final.xclbin build/insts.txt
run_py: build/final.xclbin
${powershell} python3 ${srcdir}/test.py -x build/final.xclbin -i build/insts.txt -k MLIR_AIE

clean:
Expand Down
2 changes: 1 addition & 1 deletion programming_examples/ml/conv2d_fused_relu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ clean:
chess* *.o insts.txt \
*.log aie_partition.json *.bin BOOT.BIN _x test.exe

run_py:
run_py: build/final.xclbin
${powershell} python3 ${srcdir}/test.py -x build/final.xclbin -i build/insts.txt -k MLIR_AIE
2 changes: 1 addition & 1 deletion programming_examples/vision/color_detect/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ else
cp _build/${targetname} $@
endif

run: ${targetname}.exe build/final_${COLORDETECT_WIDTH}.xclbin build/insts.txt
run: ${targetname}.exe build/final_${COLORDETECT_WIDTH}.xclbin
${powershell} ./$< -x build/final_${COLORDETECT_WIDTH}.xclbin -i build/insts.txt -k MLIR_AIE

clean:
Expand Down
2 changes: 1 addition & 1 deletion programming_examples/vision/color_threshold/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ else
cp _build/${targetname} $@
endif

run: ${targetname}.exe build/final_${COLORTHRESHOLD_WIDTH}.xclbin build/insts.txt
run: ${targetname}.exe build/final_${COLORTHRESHOLD_WIDTH}.xclbin
${powershell} ./$< -x build/final_${COLORTHRESHOLD_WIDTH}.xclbin -i build/insts.txt -k MLIR_AIE

clean:
Expand Down
2 changes: 1 addition & 1 deletion programming_examples/vision/edge_detect/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ else
cp _build/${targetname} $@
endif

run: ${targetname}.exe build/final_${EDGEDETECT_WIDTH}.xclbin build/insts.txt
run: ${targetname}.exe build/final_${EDGEDETECT_WIDTH}.xclbin
${powershell} ./$< -x build/final_${EDGEDETECT_WIDTH}.xclbin -i build/insts.txt -k MLIR_AIE

clean:
Expand Down
2 changes: 1 addition & 1 deletion programming_examples/vision/vision_passthrough/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ else
cp _build/${targetname} $@
endif

run: ${targetname}.exe build/final_${PASSTHROUGH_WIDTH}.xclbin build/insts.txt
run: ${targetname}.exe build/final_${PASSTHROUGH_WIDTH}.xclbin
${powershell} ./$< -x build/final_${PASSTHROUGH_WIDTH}.xclbin -i build/insts.txt -k MLIR_AIE

clean:
Expand Down
Loading