@@ -87,6 +87,29 @@ include ./config.mk
8787CXXFLAGS += $(opencl_CXXFLAGS ) -Wall -O0 -g -std=c++11
8888LDFLAGS += $(opencl_LDFLAGS )
8989
90+ ifeq ($(findstring zc, $(DEVICE ) ) , zc)
91+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
92+ endif
93+ ifeq ($(findstring vck, $(DEVICE ) ) , vck)
94+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
95+ endif
96+ ifeq ($(findstring u30, $(DEVICE ) ) , u30)
97+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
98+ endif
99+ ifeq ($(findstring u50, $(DEVICE ) ) , u50)
100+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
101+ endif
102+ ifeq ($(findstring u280, $(DEVICE ) ) , u280)
103+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
104+ endif
105+ ifeq ($(findstring nodma, $(DEVICE ) ) , nodma)
106+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
107+ endif
108+
109+ ifneq ($(findstring aws-vu9p-f1, $(DEVICE ) ) , aws-vu9p-f1)
110+ $(warning [WARNING] : This example has not been tested for $(DEVICE ) . It may or may not work.)
111+ endif
112+
90113# ############################# Setting up Host Variables ##############################
91114# Include Required Host Source Files
92115CXXFLAGS += -I./include
@@ -180,25 +203,6 @@ $(EMCONFIG_DIR)/emconfig.json:
180203
181204# ############################# Setting Essential Checks and Running Rules ##############################
182205run : all
183- ifeq ($(findstring zc, $(DEVICE ) ) , zc)
184- $(error This example is not supported for $(DEVICE))
185- endif
186- ifeq ($(findstring vck, $(DEVICE ) ) , vck)
187- $(error This example is not supported for $(DEVICE))
188- endif
189- ifeq ($(findstring u30, $(DEVICE ) ) , u30)
190- $(error This example is not supported for $(DEVICE))
191- endif
192- ifeq ($(findstring u50, $(DEVICE ) ) , u50)
193- $(error This example is not supported for $(DEVICE))
194- endif
195- ifeq ($(findstring u280, $(DEVICE ) ) , u280)
196- $(error This example is not supported for $(DEVICE))
197- endif
198- ifeq ($(findstring nodma, $(DEVICE ) ) , nodma)
199- $(error This example is not supported for $(DEVICE))
200- endif
201-
202206ifeq ($(TARGET ) ,$(filter $(TARGET ) ,sw_emu hw_emu) )
203207ifeq ($(HOST_ARCH ) , x86)
204208 $(CP) $(EMCONFIG_DIR)/emconfig.json .
0 commit comments