Skip to content

Commit cc98265

Browse files
committed
Changing variable name
1 parent 0092426 commit cc98265

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sys_opt/kernel_swap/config.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ifneq ($(HOST_ARCH), x86)
2-
CXXFLAGS += -Ddevice_type
1+
ifeq ($(findstring dfx, $(DEVICE)), dfx)
2+
CXXFLAGS += -Ddfx_device
33
endif

sys_opt/kernel_swap/src/host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main(int argc, char **argv) {
2323
// Command Line Parser
2424
sda::utils::CmdLineParser parser;
2525

26-
#ifdef device_type
26+
#ifdef dfx_device
2727
if (xcl::is_hw_emulation()) {
2828
std::cout
2929
<< "INFO: This example is not supported for dfx platforms for hw_emu"

0 commit comments

Comments
 (0)