Skip to content

Commit 2342332

Browse files
pcolbergsophimao
authored andcommitted
kernel_if: query streaming control done signal
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
1 parent 31a708f commit 2342332

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/acl_kernel_if.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,8 +1509,15 @@ void acl_kernel_if_update_status(acl_kernel_if *kern) {
15091509

15101510
unsigned int finish_counter = 0;
15111511
unsigned int printf_size = 0;
1512-
acl_kernel_if_update_status_query(kern, accel_id, activation_id,
1513-
finish_counter, printf_size);
1512+
1513+
if (kern->streaming_control_kernel_names[accel_id]) {
1514+
acl_get_hal()->simulation_streaming_kernel_done(
1515+
kern->physical_device_id,
1516+
*kern->streaming_control_kernel_names[accel_id], finish_counter);
1517+
} else {
1518+
acl_kernel_if_update_status_query(kern, accel_id, activation_id,
1519+
finish_counter, printf_size);
1520+
}
15141521

15151522
if (!(finish_counter > 0)) {
15161523
continue;
@@ -1524,8 +1531,10 @@ void acl_kernel_if_update_status(acl_kernel_if *kern) {
15241531
// Tell the host library this job is done
15251532
kern->accel_job_ids[accel_id][next_queue_back] = -1;
15261533

1527-
acl_kernel_if_update_status_finish(kern, accel_id, activation_id,
1528-
printf_size);
1534+
if (!kern->streaming_control_kernel_names[accel_id]) {
1535+
acl_kernel_if_update_status_finish(kern, accel_id, activation_id,
1536+
printf_size);
1537+
}
15291538

15301539
// Executing the following update after reading from performance
15311540
// and efficiency monitors will clobber the throughput reported by

0 commit comments

Comments
 (0)