Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hexagon] Add power manager #13162

Merged
merged 5 commits into from
Oct 21, 2022
Merged

Conversation

supersat
Copy link
Contributor

This PR adds a new class, HexagonPowerManager, which interfaces with the HAP_power API to request maximum performance.

cc: @mehrdadh @csullivan @kparzysz-quic

@tvm-bot
Copy link
Collaborator

tvm-bot commented Oct 20, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@supersat
Copy link
Contributor Author

cc @janetsc

Copy link
Collaborator

@janetsc janetsc left a comment

Choose a reason for hiding this comment

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

Looks good - just one quick question about HVX power!

src/runtime/hexagon/hexagon_htp.cc Show resolved Hide resolved
src/runtime/hexagon/hexagon_power_manager.cc Show resolved Hide resolved
Copy link
Contributor

@csullivan csullivan left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @supersat @janetsc

@@ -41,6 +41,7 @@
int result = api_call; \
if (result != 0) { \
HEXAGON_PRINT(ERROR, "ERROR: " #api_call " failed with error %d.", result); \
abort(); \
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Maybe LogFatal instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will address this in a future PR

@csullivan csullivan merged commit e024b0d into apache:main Oct 21, 2022
@supersat supersat deleted the hexagon-power-manager branch October 21, 2022 21:24
janetsc pushed a commit to janetsc/tvm that referenced this pull request Oct 21, 2022
This PR adds a new class, HexagonPowerManager, which interfaces with the HAP_power API to request maximum performance.

* Add Hexagon Power Manager

* Remove HexagonPowerManager::LogPowerConfig

* Delete HexagonPowerManager in ReleaseResources

* Hexagon power manager must be destroyed after the thread manager
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 10, 2022
This PR adds a new class, HexagonPowerManager, which interfaces with the HAP_power API to request maximum performance.

* Add Hexagon Power Manager

* Remove HexagonPowerManager::LogPowerConfig

* Delete HexagonPowerManager in ReleaseResources

* Hexagon power manager must be destroyed after the thread manager
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
This PR adds a new class, HexagonPowerManager, which interfaces with the HAP_power API to request maximum performance.

* Add Hexagon Power Manager

* Remove HexagonPowerManager::LogPowerConfig

* Delete HexagonPowerManager in ReleaseResources

* Hexagon power manager must be destroyed after the thread 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.

4 participants