Skip to content

Commit 01aae86

Browse files
committed
skip non-program scoped hostpipe registration in the program build. They are deprecated opencl hostpipes
1 parent 028d348 commit 01aae86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/acl_program.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,11 @@ l_register_hostpipes_to_program(acl_device_program_info_t *dev_prog,
13231323

13241324
for (const auto &hostpipe : dev_prog->device_binary.get_devdef()
13251325
.autodiscovery_def.hostpipe_mappings) {
1326+
// Skip if the hostpipe doesn't have a logical name.
1327+
// It's not the program scoped hostpipe.
1328+
if (hostpipe.logical_name == "-") {
1329+
continue;
1330+
}
13261331
// Skip if the hostpipe is already registered in the program
13271332
auto search = dev_prog->program_hostpipe_map.find(hostpipe.logical_name);
13281333
if (search != dev_prog->program_hostpipe_map.end()) {

0 commit comments

Comments
 (0)