Skip to content

Conversation

@mehrdadh
Copy link
Member

This PR adds test for registered schedules on hexagon target. Follow up to this PR: #10919

cc @kparzysz-quic @csullivan @Lunderberg

@mehrdadh
Copy link
Member Author

@farshidsp

@mehrdadh mehrdadh force-pushed the hexagon/add_operator_tests branch from 9c1fe0a to eb69c2f Compare April 14, 2022 22:21
@mehrdadh mehrdadh force-pushed the hexagon/add_operator_tests branch from eb69c2f to 9d9720f Compare April 15, 2022 17:11
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.

This all looks great to me, just a couple comments below for discussion

"""
special_stmt - Reads/Writes
"""

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Member Author

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
"""

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

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.

Comment on lines +22 to +27
use_cache=false
if [ $# -ge 1 ] && [[ "$1" == "--use-cache" ]]; then
use_cache=true
shift 1
fi

Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated?

Copy link
Member Author

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
Copy link
Contributor

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.

Copy link
Member Author

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.

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.

:shipit:

@mehrdadh mehrdadh force-pushed the hexagon/add_operator_tests branch from 692dcc4 to 214872e Compare April 22, 2022 00:22
@mehrdadh mehrdadh merged commit dca94ec into apache:main Apr 26, 2022
@mehrdadh mehrdadh deleted the hexagon/add_operator_tests branch April 26, 2022 00:18
areusch pushed a commit that referenced this pull request Apr 27, 2022
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]>
shtinsa pushed a commit to Deelvin/tvm that referenced this pull request May 17, 2022
* add hexagon schedule tests

* moved tests to sub-directories
shtinsa pushed a commit to Deelvin/tvm that referenced this pull request May 17, 2022
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]>
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.

2 participants