Skip to content

Commit

Permalink
feat(knn): update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrantxiao24 committed Sep 9, 2024
1 parent bf589ac commit 473d8a2
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 570 deletions.
18 changes: 10 additions & 8 deletions benchmarks/tapa_flow/knn_chipknn/k2D_float_8PEs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

ROOT_DIR := $(shell git rev-parse --show-toplevel)
KERNEL_NAME := Knn
PLATFORM := xilinx_u280_gen3x16_xdma_1_202211_1
RS_SCRIPT := $(CURDIR)/run.py
AB_CONFIG := $(CURDIR)/design/config/$(notdir $(RS_SCRIPT))/ab_config.json
IMPL_CONFIG := $(CURDIR)/design/config/$(notdir $(RS_SCRIPT))/impl_config.json
LINK_CONFIG := $(CURDIR)/design/config/$(notdir $(RS_SCRIPT))/link_config.ini
PLATFORM := xilinx_u55c_gen3x16_xdma_3_202210_1
GRP_UTIL := $(ROOT_DIR)/common/util/get_group.py
AB_CONFIG := $(CURDIR)/design/config/ab_config.json
TEMP_DIR := $(CURDIR)/build/$(notdir $(AB_CONFIG))
RS_TARGET := $(TEMP_DIR)/dse/candidate_0/vitis_run_hw/$(KERNEL_NAME)_$(PLATFORM).xclbin
TEMP_DIR := $(CURDIR)/build/$(notdir $(RS_SCRIPT))
RS_TARGET := $(TEMP_DIR)/dse/solution_0/vitis_run_hw/$(KERNEL_NAME)_$(PLATFORM).xclbin
TAPA_XO := $(CURDIR)/design/generated/knn.xo
PART := xcu280-fsvh2892-2L-e
BUILD_LOG := $(TEMP_DIR)/build.json
SUCCESS := "Build Successful"
TIMING_RPT := impl_1_hw_bb_locked_timing_summary_routed.rpt
Expand All @@ -33,12 +35,12 @@ $(RS_TARGET):$(TAPA_XO) $(DEVICE_CONFIG)
--floorplan-config $(AB_CONFIG) \
--single-reg \
--run-impl \
--implementation-config $(CURDIR)/design/config/impl_config.json \
--connectivity-ini $(CURDIR)/design/config/link_config.ini
--implementation-config $(IMPL_CONFIG) \
--connectivity-ini $(LINK_CONFIG)

$(DEVICE_CONFIG):$(AB_CONFIG)
mkdir -p $(TEMP_DIR)
cd $(RSPATH) && $(RSPYTHON) $(DEVICE_GEN) -i $(AB_CONFIG)
cd $(RSPATH) && $(RSPYTHON) $(RS_SCRIPT)

show_groups:
rapidstream $(GRP_UTIL) -i $(TEMP_DIR)/passes/0-imported.json \
Expand Down
204 changes: 0 additions & 204 deletions benchmarks/tapa_flow/knn_chipknn/k2D_float_8PEs/ab_config.json.json

This file was deleted.

Empty file.

This file was deleted.

Loading

0 comments on commit 473d8a2

Please sign in to comment.