@@ -1509,8 +1509,15 @@ void acl_kernel_if_update_status(acl_kernel_if *kern) {
1509
1509
1510
1510
unsigned int finish_counter = 0 ;
1511
1511
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
+ }
1514
1521
1515
1522
if (!(finish_counter > 0 )) {
1516
1523
continue ;
@@ -1524,8 +1531,10 @@ void acl_kernel_if_update_status(acl_kernel_if *kern) {
1524
1531
// Tell the host library this job is done
1525
1532
kern->accel_job_ids [accel_id][next_queue_back] = -1 ;
1526
1533
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
+ }
1529
1538
1530
1539
// Executing the following update after reading from performance
1531
1540
// and efficiency monitors will clobber the throughput reported by
0 commit comments