|
12 | 12 | #include "core/common/time.h" |
13 | 13 | #include "core/common/utils.h" |
14 | 14 | #include "core/include/xrt/xrt_hw_context.h" |
15 | | -#include "core/include/xrt/xrt_kernel.h" |
16 | 15 | #include "core/include/xrt/experimental/xrt_ext.h" |
17 | 16 | #include "core/include/xrt/experimental/xrt_module.h" |
18 | 17 | #include "bo_int.h" |
@@ -153,11 +152,6 @@ class hw_context_impl : public std::enable_shared_from_this<hw_context_impl> |
153 | 152 | // are saved to a scratchpad memory allocated specifically for that context. |
154 | 153 | std::once_flag m_scratchpad_init_flag; // used for thread safe lazy init of scratchpad |
155 | 154 | xrt::bo m_scratchpad_buf; |
156 | | - // Vector of XDP runs to be added at beginning and end of runlist |
157 | | - // These runs initializes/configures AI array and collects the profile/trace data |
158 | | - std::vector<xrt::run> m_xdp_init_runs; |
159 | | - std::vector<xrt::run> m_xdp_exit_runs; |
160 | | - |
161 | 155 | std::shared_ptr<xrt_core::usage_metrics::base_logger> m_usage_logger = |
162 | 156 | xrt_core::usage_metrics::get_usage_metrics_logger(); |
163 | 157 | bool m_elf_flow = false; |
@@ -471,33 +465,6 @@ class hw_context_impl : public std::enable_shared_from_this<hw_context_impl> |
471 | 465 | msg.append(dump_file_name); |
472 | 466 | xrt_core::message::send(xrt_core::message::severity_level::debug, "xrt_hw_context", msg); |
473 | 467 | } |
474 | | - |
475 | | - // Callback Functions for XDP to register init and exit runs |
476 | | - // that are added to xrt::runlist at start and end respectively |
477 | | - void |
478 | | - register_xdp_init_run(const xrt::run& run) |
479 | | - { |
480 | | - m_xdp_init_runs.push_back(run); |
481 | | - } |
482 | | - |
483 | | - void |
484 | | - register_xdp_exit_run(const xrt::run& run) |
485 | | - { |
486 | | - m_xdp_exit_runs.push_back(run); |
487 | | - } |
488 | | - |
489 | | - // Functions to get XDP init and exit run vectors |
490 | | - const std::vector<xrt::run>& |
491 | | - get_xdp_init_runs() const |
492 | | - { |
493 | | - return m_xdp_init_runs; |
494 | | - } |
495 | | - |
496 | | - const std::vector<xrt::run>& |
497 | | - get_xdp_exit_runs() const |
498 | | - { |
499 | | - return m_xdp_exit_runs; |
500 | | - } |
501 | 468 | }; |
502 | 469 |
|
503 | 470 | } // xrt |
@@ -565,31 +532,6 @@ dump_scratchpad_mem(const xrt::hw_context& hwctx) |
565 | 532 | return hwctx.get_handle()->dump_scratchpad_mem(); |
566 | 533 | } |
567 | 534 |
|
568 | | -void |
569 | | -register_xdp_init_run(const xrt::hw_context& ctx, const xrt::run& run) |
570 | | -{ |
571 | | - ctx.get_handle()->register_xdp_init_run(run); |
572 | | -} |
573 | | - |
574 | | -XRT_CORE_COMMON_EXPORT |
575 | | -void |
576 | | -register_xdp_exit_run(const xrt::hw_context& ctx, const xrt::run& run) |
577 | | -{ |
578 | | - ctx.get_handle()->register_xdp_exit_run(run); |
579 | | -} |
580 | | - |
581 | | -const std::vector<xrt::run>& |
582 | | -get_xdp_init_runs(const xrt::hw_context& ctx) |
583 | | -{ |
584 | | - return ctx.get_handle()->get_xdp_init_runs(); |
585 | | -} |
586 | | - |
587 | | -const std::vector<xrt::run>& |
588 | | -get_xdp_exit_runs(const xrt::hw_context& ctx) |
589 | | -{ |
590 | | - return ctx.get_handle()->get_xdp_exit_runs(); |
591 | | -} |
592 | | - |
593 | 535 | } // xrt_core::hw_context_int |
594 | 536 |
|
595 | 537 | //////////////////////////////////////////////////////////////// |
|
0 commit comments