@@ -56,9 +56,6 @@ acl_process_autorun_profiler_scan_chain(unsigned int physical_device_id,
5656 k->io .printf ((m), ##__VA_ARGS__); \
5757 } while (0 )
5858
59- // #define POLLING
60- // #define POLLING_PERIOD (10000) // polling period in ns
61-
6259typedef time_ns time_us;
6360
6461// Function declarations
@@ -1489,11 +1486,7 @@ static void acl_kernel_if_update_status_finish(acl_kernel_if *kern,
14891486void acl_kernel_if_update_status (acl_kernel_if *kern) {
14901487 acl_assert_locked_or_sig ();
14911488
1492- #ifdef POLLING
1493- ACL_KERNEL_IF_DEBUG_MSG_VERBOSE (kern, 10 , " :: Updating kernel status.\n " );
1494- #else
14951489 ACL_KERNEL_IF_DEBUG_MSG_VERBOSE (kern, 5 , " :: Updating kernel status.\n " );
1496- #endif
14971490
14981491 // Check which accelerators are done and update their status appropriately
14991492 for (unsigned int accel_id = 0 ; accel_id < kern->num_accel ; ++accel_id) {
@@ -1674,9 +1667,6 @@ void acl_kernel_if_dump_status(acl_kernel_if *kern) {
16741667// Called by the host program when there are spare cycles or
16751668// if the host has been waiting for a while in debug mode.
16761669void acl_kernel_if_check_kernel_status (acl_kernel_if *kern) {
1677- #ifdef POLLING
1678- static time_ns last_update;
1679- #endif
16801670 acl_assert_locked ();
16811671
16821672 if (kern->last_kern_update != 0 &&
@@ -1698,14 +1688,6 @@ void acl_kernel_if_check_kernel_status(acl_kernel_if *kern) {
16981688 acl_kernel_if_dump_status (kern);
16991689 }
17001690 }
1701-
1702- #ifdef POLLING
1703- time_ns time = kern->io .get_time_ns ();
1704- if (time > last_update + POLLING_PERIOD || time < last_update) {
1705- last_update = time;
1706- acl_kernel_if_update_status (kern);
1707- }
1708- #endif
17091691}
17101692
17111693// Called when a printf buffer processing is done for kernel, and
0 commit comments