From 01aae862e594f2a10aa06ae7ad2247d7137532d5 Mon Sep 17 00:00:00 2001 From: Zibai Wang Date: Mon, 17 Apr 2023 08:21:46 -0700 Subject: [PATCH] skip non-program scoped hostpipe registration in the program build. They are deprecated opencl hostpipes --- src/acl_program.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/acl_program.cpp b/src/acl_program.cpp index 5d13dfc2..6b168911 100644 --- a/src/acl_program.cpp +++ b/src/acl_program.cpp @@ -1323,6 +1323,11 @@ l_register_hostpipes_to_program(acl_device_program_info_t *dev_prog, for (const auto &hostpipe : dev_prog->device_binary.get_devdef() .autodiscovery_def.hostpipe_mappings) { + // Skip if the hostpipe doesn't have a logical name. + // It's not the program scoped hostpipe. + if (hostpipe.logical_name == "-") { + continue; + } // Skip if the hostpipe is already registered in the program auto search = dev_prog->program_hostpipe_map.find(hostpipe.logical_name); if (search != dev_prog->program_hostpipe_map.end()) {