Skip to content

[Hexagon] [runtime] Allow creation of thread manager without hardware resources#13174

Merged
driazati merged 4 commits intoapache:mainfrom
janetsc:signal_wait_tests
Oct 21, 2022
Merged

[Hexagon] [runtime] Allow creation of thread manager without hardware resources#13174
driazati merged 4 commits intoapache:mainfrom
janetsc:signal_wait_tests

Conversation

@janetsc
Copy link
Contributor

@janetsc janetsc commented Oct 21, 2022

This allows the creation of a thread manager with optional hardware resources. This allows us to create a new object for unit tests without hardware resources.

This will fix the test instability we've seen recently, as all tests were using the global thread manager and things could be in an unknown state.

cc: @adstraw, @mehrdadh, @JosephTheOctonaut, @csullivan

@tvm-bot
Copy link
Collaborator

tvm-bot commented Oct 21, 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

@janetsc janetsc marked this pull request as ready for review October 21, 2022 21:14
ASSERT_THROW(HexagonThreadManager(6, stack_size, 0x10000000), InternalError);
// hw resources count doesn't match thread count
ASSERT_THROW(HexagonThreadManager(6, stack_size, pipe_size, {DMA_0}), InternalError);
// hw resources doesn't match specific supported configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

We should come back and revisit this. Having this very strict specification of hardware resources is probably not what we want long term. Let's see if we can make this a little more flexible going forward. That said, I am OK with this PR as an interim step.

@driazati driazati merged commit f4fdc13 into apache:main Oct 21, 2022
@janetsc janetsc deleted the signal_wait_tests branch October 22, 2022 01:59
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 10, 2022
… resources (apache#13174)

This allows the creation of a thread manager with optional hardware resources.  This allows us to create a new object for unit tests without hardware resources.

This will fix the test instability we've seen recently, as all tests were using the global thread manager and things could be in an unknown state.
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
… resources (apache#13174)

This allows the creation of a thread manager with optional hardware resources.  This allows us to create a new object for unit tests without hardware resources.

This will fix the test instability we've seen recently, as all tests were using the global thread manager and things could be in an unknown state.
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