-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Hexagon] Add power manager #13162
Conversation
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 |
cc @janetsc |
There was a problem hiding this 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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -41,6 +41,7 @@ | |||
int result = api_call; \ | |||
if (result != 0) { \ | |||
HEXAGON_PRINT(ERROR, "ERROR: " #api_call " failed with error %d.", result); \ | |||
abort(); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Maybe LogFatal instead
There was a problem hiding this comment.
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
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
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
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
This PR adds a new class,
HexagonPowerManager
, which interfaces with theHAP_power
API to request maximum performance.cc: @mehrdadh @csullivan @kparzysz-quic