Skip to content

Commit e1ff665

Browse files
committed
Include kernel argument index in multiple buffer_location warning
This amends #109 Signed-off-by: Peter Colberg <[email protected]>
1 parent 6a21345 commit e1ff665

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/acl_auto_configure.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,9 @@ static bool read_kernel_args(const std::string &config_str,
548548
buffer_location, counters);
549549
}
550550
if (result && num_buffer_locations > 1) {
551-
std::cerr << "WARNING: kernel argument has multiple buffer_location "
552-
"attributes which is not supported.\nSelecting "
551+
std::cerr << "WARNING: kernel argument " << j
552+
<< " has multiple buffer_location attributes which is not "
553+
"supported.\nSelecting "
553554
<< buffer_location << " as buffer location.\n";
554555
}
555556
}

0 commit comments

Comments
 (0)