Skip to content

Commit

Permalink
hbm_simple_xrt_sw_emu_disabled (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonal Agarwal authored and GitHub Enterprise committed Oct 17, 2022
1 parent ab47f45 commit 50500a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions host_xrt/hbm_simple_xrt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ XF_PROJ_ROOT = $(shell readlink -f $(COMMON_REPO))

########################## Checking if PLATFORM in allowlist #######################
PLATFORM_BLOCKLIST += u25_ u30 u200 zc vck u250 aws samsung u2_ x3522pv nodma v70
ifneq ($(TARGET),$(findstring $(TARGET), hw hw_emu))
$(error Application supports only hw hw_emu TARGET. Please use the target for running the application)
endif
PLATFORM ?= xilinx_u250_gen3x16_xdma_4_1_202210_1
DEV_ARCH := $(shell platforminfo -p $(PLATFORM) | grep 'FPGA Family' | sed 's/.*://' | sed '/ai_engine/d' | sed 's/^[[:space:]]*//')
CPU_TYPE := $(shell platforminfo -p $(PLATFORM) | grep 'CPU Type' | sed 's/.*://' | sed '/ai_engine/d' | sed 's/^[[:space:]]*//')
Expand Down
5 changes: 4 additions & 1 deletion host_xrt/hbm_simple_xrt/description.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"v70"
],
"platform_type": "pcie",
"targets": [
"hw",
"hw_emu"
],
"os": [
"Linux"
],
Expand Down Expand Up @@ -88,7 +92,6 @@
}
],
"targets": [
"vitis_sw_emu",
"vitis_hw_emu",
"vitis_hw"
],
Expand Down
7 changes: 7 additions & 0 deletions host_xrt/hbm_simple_xrt/makefile_us_alveo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ ifeq ($(TARGET),$(filter $(TARGET),sw_emu hw_emu))
else
$(EXECUTABLE) $(CMD_ARGS)
endif
ifneq ($(TARGET),$(findstring $(TARGET), hw hw_emu))
$(error Application supports only hw hw_emu TARGET. Please use the target for running the application)
endif

.PHONY: test
test: $(EXECUTABLE)
Expand All @@ -126,6 +129,10 @@ ifeq ($(TARGET),$(filter $(TARGET),sw_emu hw_emu))
else
$(EXECUTABLE) $(CMD_ARGS)
endif
ifneq ($(TARGET),$(findstring $(TARGET), hw hw_emu))
$(warning WARNING:Application supports only hw hw_emu TARGET. Please use the target for running the application)
endif


############################## Cleaning Rules ##############################
# Cleaning stuff
Expand Down

0 comments on commit 50500a5

Please sign in to comment.