Skip to content

Commit eb08c75

Browse files
Bhaskar VishnuVardhan ChebroluGitHub Enterprise
authored andcommitted
Kernel swap dfx hw emu disable
2 parents c02c428 + cc98265 commit eb08c75

File tree

6 files changed

+15
-32
lines changed

6 files changed

+15
-32
lines changed

library_examples/anti_money_laundering/config.mk

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
#
2-
# Copyright 2020 Xilinx, Inc.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
16-
171
#Checks for g++
182
CXX := g++
193
ifeq ($(HOST_ARCH), x86)

library_examples/gzip_app/config.mk

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
#
2-
# Copyright 2019 Xilinx, Inc.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
16-
171
VERBOSE := no
182

193
# Generate Verbose content

sys_opt/kernel_swap/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ VPP := v++
6464
SDCARD := sd_card
6565

6666
include $(ABS_COMMON_REPO)/common/includes/opencl/opencl.mk
67+
include ./config.mk
68+
6769
CXXFLAGS += $(opencl_CXXFLAGS) -Wall -O0 -g -std=c++11
6870
LDFLAGS += $(opencl_LDFLAGS)
6971

sys_opt/kernel_swap/config.mk

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

sys_opt/kernel_swap/description.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"name": "generic launch for all flows"
8181
}
8282
],
83+
"config_make": "./config.mk",
8384
"contributors": [
8485
{
8586
"url": "http://www.xilinx.com",

sys_opt/kernel_swap/src/host.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ int main(int argc, char **argv) {
2323
// Command Line Parser
2424
sda::utils::CmdLineParser parser;
2525

26+
#ifdef dfx_device
27+
if (xcl::is_hw_emulation()) {
28+
std::cout
29+
<< "INFO: This example is not supported for dfx platforms for hw_emu"
30+
<< std::endl;
31+
return EXIT_SUCCESS;
32+
}
33+
#endif
34+
2635
// Switches
2736
//**************//"<Full Arg>", "<Short Arg>", "<Description>", "<Default>"
2837
parser.addSwitch("--xclbin_file_krnl_mmult", "-x1",

0 commit comments

Comments
 (0)