-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Hexagon] Add test for registered schedules #11016
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
Conversation
9c1fe0a to
eb69c2f
Compare
eb69c2f to
9d9720f
Compare
csullivan
left a comment
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.
This all looks great to me, just a couple comments below for discussion
| """ | ||
| special_stmt - Reads/Writes | ||
| """ | ||
|
|
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.
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.
This is done by the clang format tool.
| """ | ||
| Scope handler - Loops | ||
| """ | ||
|
|
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.
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.
same as above.
|
|
||
| // TODO(mehrdadh): make this configurable. | ||
| #define TVM_HEXAGON_RPC_BUFF_SIZE_BYTES 2 * 1024 * 1024 | ||
| #define TVM_HEXAGON_RPC_BUFF_SIZE_BYTES 5 * 1024 * 1024 |
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.
Looking at the TODO above, should we make this configurable now?
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.
yeah makes sense. Waiting for #11022 to merge and then will rebase and fix this.
| use_cache=false | ||
| if [ $# -ge 1 ] && [[ "$1" == "--use-cache" ]]; then | ||
| use_cache=true | ||
| shift 1 | ||
| fi | ||
|
|
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.
Unrelated?
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.
Unrelated to this PR but useful change for development. I could send a separate PR if you suggest.
| @@ -0,0 +1,138 @@ | |||
| # Licensed to the Apache Software Foundation (ASF) under one | |||
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.
Should we move these tests to an topi/ subdirectory? Thinking about how we might want the directory structure. These are generic functionality tests, but soon we'll have tests for some of the same operators which utilize more complex scheduling. It would be nice to have these located in separate directories.
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.
makes sense. Moved them to sub-directories.
csullivan
left a comment
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.
![]()
added conv2d tests
Remove unused script
692dcc4 to
214872e
Compare
This shards up the hexagon build since after #11016 it's the longest test step. This also drops the max runtime per stage down to 2 hours from 4 hours to make these kind of increases more obvious in the future. Co-authored-by: driazati <[email protected]>
* add hexagon schedule tests * moved tests to sub-directories
This shards up the hexagon build since after apache#11016 it's the longest test step. This also drops the max runtime per stage down to 2 hours from 4 hours to make these kind of increases more obvious in the future. Co-authored-by: driazati <[email protected]>
This PR adds test for registered schedules on hexagon target. Follow up to this PR: #10919
cc @kparzysz-quic @csullivan @Lunderberg