From e1ff665b6edec13126ed15d79d7833c3bd19e6af Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Mon, 25 Apr 2022 12:08:17 -0400 Subject: [PATCH] Include kernel argument index in multiple buffer_location warning This amends https://github.com/intel/fpga-runtime-for-opencl/pull/109 Signed-off-by: Peter Colberg --- src/acl_auto_configure.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/acl_auto_configure.cpp b/src/acl_auto_configure.cpp index 5fa91d64..8102d405 100644 --- a/src/acl_auto_configure.cpp +++ b/src/acl_auto_configure.cpp @@ -548,8 +548,9 @@ static bool read_kernel_args(const std::string &config_str, buffer_location, counters); } if (result && num_buffer_locations > 1) { - std::cerr << "WARNING: kernel argument has multiple buffer_location " - "attributes which is not supported.\nSelecting " + std::cerr << "WARNING: kernel argument " << j + << " has multiple buffer_location attributes which is not " + "supported.\nSelecting " << buffer_location << " as buffer location.\n"; } }