Skip to content

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
Contributor

@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!

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

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