Skip to content

Conversation

@janetsc
Copy link
Contributor

@janetsc janetsc commented Sep 7, 2022

Improves runtime buffer management

  • Adds entry points to "acquire" and "release" resources in the device API object. These are called from the RPC client session object.
  • Adds a new buffer manager object for runtime allocations. It is created in Acquire and destroyed in Release.
  • Updates device API to use runtime buffer manager if it exists.
  • Unit test.

Future changes:

  • Add thread manager, dma engine

cc @areusch @mehrdadh

@janetsc janetsc changed the title WIP [Hexagon] [runtime] First pass at improving runtime resource management WIP [Hexagon] [runtime] Improve runtime resource management Sep 8, 2022
@janetsc janetsc changed the title WIP [Hexagon] [runtime] Improve runtime resource management [Hexagon] [runtime] Improve runtime resource management Sep 8, 2022
@janetsc janetsc marked this pull request as ready for review September 12, 2022 14:09
@janetsc janetsc closed this Sep 12, 2022
@janetsc janetsc reopened this Sep 12, 2022
@github-actions github-actions bot requested a review from areusch September 12, 2022 18:06
@janetsc janetsc marked this pull request as draft September 12, 2022 20:45
@janetsc janetsc marked this pull request as ready for review September 13, 2022 17:33
@tmoreau89
Copy link
Contributor

CC @kparzysz-quic for additional input; thanks!

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @janetsc , added a couple questions

Copy link
Contributor

@adstraw adstraw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@areusch areusch merged commit 38f53e8 into apache:main Sep 16, 2022
@janetsc janetsc deleted the resource_management branch September 27, 2022 17:39
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
* First pass at improving runtime resource management

* Add unit test

* Fix lint and clang format errors

* Disable resource reset for simulator

* Moved acquire/release calls to session object, separate buffer managers for non-runtime (static) and runtime (dynamic).

* Fix lint errors

* Fix lint errors

* Improve robustness of session shutdown

* Fix lint

* Address feedback

* Only allow call to Acquire in a clean state

* Use a pointer to indicate the "active" manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants